aboutsummaryrefslogtreecommitdiff
path: root/sbin/growfs/growfs.c
diff options
context:
space:
mode:
authorGavin Atkinson <gavin@FreeBSD.org>2010-02-13 16:22:08 +0000
committerGavin Atkinson <gavin@FreeBSD.org>2010-02-13 16:22:08 +0000
commit08f353ebe35a0d84af5157b72adda16896b5f03f (patch)
tree903350991c829c9a63e062f0f114cbc833afa935 /sbin/growfs/growfs.c
parent193cbc4d24881a646b460b86dc015551ad8e2fbf (diff)
downloadsrc-08f353ebe35a0d84af5157b72adda16896b5f03f.tar.gz
src-08f353ebe35a0d84af5157b72adda16896b5f03f.zip
Notes
Diffstat (limited to 'sbin/growfs/growfs.c')
-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 a715ec18ce42..5e950fccd112 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -450,13 +450,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