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
b4156e6
..
6d2b016
100644
(file)
--- a/
sys/ufs/mfs_vfsops.c
+++ b/
sys/ufs/mfs_vfsops.c
@@
-31,10
+31,11
@@
* SUCH DAMAGE.
*
* from: @(#)mfs_vfsops.c 7.19 (Berkeley) 4/16/91
* SUCH DAMAGE.
*
* from: @(#)mfs_vfsops.c 7.19 (Berkeley) 4/16/91
- * $Id$
+ * $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"
@@
-63,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,
@@
-84,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;
@@
-137,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);
}
@@
-151,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;
@@
-185,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;