From 124c21f21f4966838bbdc2ae7f07bc362d2a2aab Mon Sep 17 00:00:00 2001 From: Mike Pritchard Date: Sat, 2 Sep 1995 20:17:57 +0000 Subject: Correctly initialize the mount stat structure so that fdesc file systems show up in "mount" correctly and so that they can then be unmounted. --- sys/fs/fdescfs/fdesc_vfsops.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/fs') diff --git a/sys/fs/fdescfs/fdesc_vfsops.c b/sys/fs/fdescfs/fdesc_vfsops.c index f44158e04e69..4794250aba8a 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 #include +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); } -- cgit v1.2.3