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.
This commit is contained in:
phk 2004-07-14 14:19:32 +00:00
parent 84afba7490
commit 4880ba75c6

View File

@ -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
/*