svn commit: r184080 - in stable/7/sys: . ufs/ffs
Konstantin Belousov
kib at FreeBSD.org
Mon Oct 20 16:45:00 UTC 2008
Author: kib
Date: Mon Oct 20 16:44:59 2008
New Revision: 184080
URL: http://svn.freebsd.org/changeset/base/184080
Log:
MFC r183822:
Sync up summary information for cylinder groups while data is already
in memory during snapshot creation.
Approved by: re (kensmith)
Modified:
stable/7/sys/ (props changed)
stable/7/sys/ufs/ffs/ffs_snapshot.c
Modified: stable/7/sys/ufs/ffs/ffs_snapshot.c
==============================================================================
--- stable/7/sys/ufs/ffs/ffs_snapshot.c Mon Oct 20 16:36:32 2008 (r184079)
+++ stable/7/sys/ufs/ffs/ffs_snapshot.c Mon Oct 20 16:44:59 2008 (r184080)
@@ -880,6 +880,13 @@ cgaccount(cg, vp, nbp, passno)
}
UFS_LOCK(ip->i_ump);
ACTIVESET(fs, cg);
+ /*
+ * Recomputation of summary information might not have been performed
+ * at mount time. Sync up summary information for current cylinder
+ * group while data is in memory to ensure that result of background
+ * fsck is slightly more consistent.
+ */
+ fs->fs_cs(fs, cg) = cgp->cg_cs;
UFS_UNLOCK(ip->i_ump);
bcopy(bp->b_data, nbp->b_data, fs->fs_cgsize);
if (fs->fs_cgsize < fs->fs_bsize)
More information about the svn-src-stable-7
mailing list