Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2008 16:45:00 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r184080 - in stable/7/sys: . ufs/ffs
Message-ID:  <200810201645.m9KGj0DJ075452@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810201645.m9KGj0DJ075452>