aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-07-14 14:19:32 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-07-14 14:19:32 +0000
commitd8d3d4158b88abd0cc7319f1ade7e3ab08b08060 (patch)
tree944c6271e04b2a8d3b160518a2374b86f3c12b8b /sys
parentb03d330986d30a54c65fdf78e1bab2274bd9d2a4 (diff)
downloadsrc-d8d3d4158b88abd0cc7319f1ade7e3ab08b08060.tar.gz
src-d8d3d4158b88abd0cc7319f1ade7e3ab08b08060.zip
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.
Notes
Notes: svn path=/head/; revision=132154
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 2ed939d4ca51..13f424f78a8c 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
/*