summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1995-09-02 20:17:57 +0000
committermpp <mpp@FreeBSD.org>1995-09-02 20:17:57 +0000
commit5998ed1acf1d48d7280ef9ff58fd1ff0fa2c3b0c (patch)
tree1800fe2018fc423b149e813c25d08d34726a4093 /sys/fs
parentbf73fe4ee975238676f09036f3c170adbdb9a641 (diff)
downloadFreeBSD-src-5998ed1acf1d48d7280ef9ff58fd1ff0fa2c3b0c.zip
FreeBSD-src-5998ed1acf1d48d7280ef9ff58fd1ff0fa2c3b0c.tar.gz
Correctly initialize the mount stat structure so that
fdesc file systems show up in "mount" correctly and so that they can then be unmounted.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/fdescfs/fdesc_vfsops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/fs/fdescfs/fdesc_vfsops.c b/sys/fs/fdescfs/fdesc_vfsops.c
index f44158e..4794250 100644
--- a/sys/fs/fdescfs/fdesc_vfsops.c
+++ b/sys/fs/fdescfs/fdesc_vfsops.c
@@ -35,7 +35,7 @@
*
* @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94
*
- * $Id: fdesc_vfsops.c,v 1.3 1995/03/16 18:13:05 bde Exp $
+ * $Id: fdesc_vfsops.c,v 1.4 1995/03/16 20:23:38 wollman Exp $
*/
/*
@@ -56,6 +56,8 @@
#include <sys/malloc.h>
#include <miscfs/fdesc/fdesc.h>
+int fdesc_statfs __P((struct mount *, struct statfs *, struct proc *));
+
/*
* Mount the per-process file descriptors (/dev/fd)
*/
@@ -96,6 +98,7 @@ fdesc_mount(mp, path, data, ndp, p)
bzero(mp->mnt_stat.f_mntonname + size, MNAMELEN - size);
bzero(mp->mnt_stat.f_mntfromname, MNAMELEN);
bcopy("fdesc", mp->mnt_stat.f_mntfromname, sizeof("fdesc"));
+ (void)fdesc_statfs(mp, &mp->mnt_stat, p);
return (0);
}
OpenPOWER on IntegriCloud