diff options
author | phk <phk@FreeBSD.org> | 2004-07-14 14:19:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-07-14 14:19:32 +0000 |
commit | 4880ba75c67deb41bcd7d4b193f2b2c61a53a36c (patch) | |
tree | 944c6271e04b2a8d3b160518a2374b86f3c12b8b /sys/ufs | |
parent | 84afba7490ad1c0abbba5ccd7574d8c6858d0e67 (diff) | |
download | FreeBSD-src-4880ba75c67deb41bcd7d4b193f2b2c61a53a36c.zip FreeBSD-src-4880ba75c67deb41bcd7d4b193f2b2c61a53a36c.tar.gz |
Make sure to update the mnt_stats before UFS1 extattr tried to
do I/O on the device. Otherwise the blocksize is undefined in the
buffer cache.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 2ed939d4..13f424f 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -171,7 +171,6 @@ ffs_mount(mp, path, data, ndp, td) if ((error = ffs_mountfs(rootvp, mp, td)) != 0) return (error); - (void)VFS_STATFS(mp, &mp->mnt_stat, td); return (0); } @@ -370,10 +369,6 @@ ffs_mount(mp, path, data, ndp, td) */ copyinstr(args.fspec, mp->mnt_stat.f_mntfromname, MNAMELEN - 1, &size); bzero( mp->mnt_stat.f_mntfromname + size, MNAMELEN - size); - /* - * Initialize filesystem stat information in mount struct. - */ - (void)VFS_STATFS(mp, &mp->mnt_stat, td); return (0); } @@ -791,6 +786,10 @@ ffs_mountfs(devvp, mp, td) fs->fs_clean = 0; (void) ffs_sbupdate(ump, MNT_WAIT); } + /* + * Initialize filesystem stat information in mount struct. + */ + (void)VFS_STATFS(mp, &mp->mnt_stat, td); #ifdef UFS_EXTATTR #ifdef UFS_EXTATTR_AUTOSTART /* |