aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Atkinson <gavin@FreeBSD.org>2010-03-17 20:27:35 +0000
committerGavin Atkinson <gavin@FreeBSD.org>2010-03-17 20:27:35 +0000
commit40df979212ce3d31e39bc11ec3232c10febfe392 (patch)
treeb01561c2ec5287c27c150a870c8a03357d16127f
parent27dfb536f20f77bf1abea77b092345b3e3a46e69 (diff)
Notes
-rw-r--r--sbin/growfs/growfs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index bf803acd8d98..ef055f18a778 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -445,13 +445,11 @@ initcg(int cylno, time_t utime, int fso, unsigned int Nflag)
acg.cg_cs.cs_nifree--;
}
/*
- * XXX Newfs writes out two blocks of initialized inodes
- * unconditionally. Should we check here to make sure that they
- * were actually written?
+ * For the old file system, we have to initialize all the inodes.
*/
if (sblock.fs_magic == FS_UFS1_MAGIC) {
bzero(iobuf, sblock.fs_bsize);
- for (i = 2 * sblock.fs_frag; i < sblock.fs_ipg / INOPF(&sblock);
+ for (i = 0; i < sblock.fs_ipg / INOPF(&sblock);
i += sblock.fs_frag) {
dp1 = (struct ufs1_dinode *)iobuf;
#ifdef FSIRAND