projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make everything compile with -Wtraditional. Make it easier to distribute
[unix-history]
/
sys
/
ufs
/
mfs_vfsops.c
diff --git
a/sys/ufs/mfs_vfsops.c
b/sys/ufs/mfs_vfsops.c
index
8d63674
..
6d2b016
100644
(file)
--- a/
sys/ufs/mfs_vfsops.c
+++ b/
sys/ufs/mfs_vfsops.c
@@
-30,10
+30,12
@@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)mfs_vfsops.c 7.19 (Berkeley) 4/16/91
+ * from: @(#)mfs_vfsops.c 7.19 (Berkeley) 4/16/91
+ * $Id: mfs_vfsops.c,v 1.5 1993/11/25 01:38:25 wollman Exp $
*/
#include "param.h"
*/
#include "param.h"
+#include "systm.h"
#include "time.h"
#include "kernel.h"
#include "proc.h"
#include "time.h"
#include "kernel.h"
#include "proc.h"
@@
-62,7
+64,7
@@
int mfs_statfs();
int ufs_sync();
int ufs_fhtovp();
int ufs_vptofh();
int ufs_sync();
int ufs_fhtovp();
int ufs_vptofh();
-
int
mfs_init();
+
void
mfs_init();
struct vfsops mfs_vfsops = {
mfs_mount,
struct vfsops mfs_vfsops = {
mfs_mount,
@@
-83,6
+85,7
@@
struct vfsops mfs_vfsops = {
* mount system call
*/
/* ARGSUSED */
* mount system call
*/
/* ARGSUSED */
+int
mfs_mount(mp, path, data, ndp, p)
register struct mount *mp;
char *path;
mfs_mount(mp, path, data, ndp, p)
register struct mount *mp;
char *path;
@@
-136,6
+139,8
@@
mfs_mount(mp, path, data, ndp, p)
&size);
bzero(mp->mnt_stat.f_mntfromname + size, MNAMELEN - size);
(void) mfs_statfs(mp, &mp->mnt_stat);
&size);
bzero(mp->mnt_stat.f_mntfromname + size, MNAMELEN - size);
(void) mfs_statfs(mp, &mp->mnt_stat);
+ if ((args.flags & MFSMNT_SIGPPID) && (p->p_pptr != initproc))
+ (void)psignal(p->p_pptr, SIGUSR1);
return (0);
}
return (0);
}
@@
-150,6
+155,7
@@
int mfs_pri = PWAIT | PCATCH; /* XXX prob. temp */
* address space.
*/
/* ARGSUSED */
* address space.
*/
/* ARGSUSED */
+int
mfs_start(mp, flags, p)
struct mount *mp;
int flags;
mfs_start(mp, flags, p)
struct mount *mp;
int flags;
@@
-184,6
+190,7
@@
mfs_start(mp, flags, p)
/*
* Get file system statistics.
*/
/*
* Get file system statistics.
*/
+int
mfs_statfs(mp, sbp, p)
struct mount *mp;
struct statfs *sbp;
mfs_statfs(mp, sbp, p)
struct mount *mp;
struct statfs *sbp;