diff options
author | Mike Pritchard <mpp@FreeBSD.org> | 1995-09-02 20:17:57 +0000 |
---|---|---|
committer | Mike Pritchard <mpp@FreeBSD.org> | 1995-09-02 20:17:57 +0000 |
commit | 124c21f21f4966838bbdc2ae7f07bc362d2a2aab (patch) | |
tree | 1800fe2018fc423b149e813c25d08d34726a4093 /sys/fs | |
parent | 98c88647d925c493ccb360094d2b6439a9715542 (diff) | |
download | src-124c21f21f4966838bbdc2ae7f07bc362d2a2aab.tar.gz src-124c21f21f4966838bbdc2ae7f07bc362d2a2aab.zip |
Correctly initialize the mount stat structure so that
fdesc file systems show up in "mount" correctly and so that
they can then be unmounted.
Notes
Notes:
svn path=/head/; revision=10533
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/fdescfs/fdesc_vfsops.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <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); } |