diff options
author | bde <bde@FreeBSD.org> | 1998-01-01 08:28:26 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-01-01 08:28:26 +0000 |
commit | 9c98de2bbabe2220cd772d4491f7fa5cad8d6648 (patch) | |
tree | c72d4be87f3ee98c33fe174840b7ad626eec0bd1 /sys/miscfs/nullfs | |
parent | a472b7fd712916a6d641014da562aa2202fc7274 (diff) | |
download | FreeBSD-src-9c98de2bbabe2220cd772d4491f7fa5cad8d6648.zip FreeBSD-src-9c98de2bbabe2220cd772d4491f7fa5cad8d6648.tar.gz |
Fixed missing initialization of mp->mnt_stat. At least vm depends on
at least mp->mnt_stat.f_iosize being nonzero.
PR: 5212
Diffstat (limited to 'sys/miscfs/nullfs')
-rw-r--r-- | sys/miscfs/nullfs/null_vfsops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/miscfs/nullfs/null_vfsops.c b/sys/miscfs/nullfs/null_vfsops.c index 29be50a..b9d3650 100644 --- a/sys/miscfs/nullfs/null_vfsops.c +++ b/sys/miscfs/nullfs/null_vfsops.c @@ -36,7 +36,7 @@ * @(#)null_vfsops.c 8.2 (Berkeley) 1/21/94 * * @(#)lofs_vfsops.c 1.2 (Berkeley) 6/18/92 - * $Id: null_vfsops.c,v 1.19 1997/08/16 19:15:16 wollman Exp $ + * $Id: null_vfsops.c,v 1.20 1997/10/12 20:24:50 phk Exp $ */ /* @@ -198,6 +198,7 @@ nullfs_mount(mp, path, data, ndp, p) (void) copyinstr(args.target, mp->mnt_stat.f_mntfromname, MNAMELEN - 1, &size); bzero(mp->mnt_stat.f_mntfromname + size, MNAMELEN - size); + (void)nullfs_statfs(mp, &mp->mnt_stat, p); #ifdef NULLFS_DIAGNOSTIC printf("nullfs_mount: lower %s, alias at %s\n", mp->mnt_stat.f_mntfromname, mp->mnt_stat.f_mntonname); |