summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-06-01 14:26:09 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-06-01 14:26:09 +0000
commit323bb16b2bd94d254e8211d526fa04629fb1aec7 (patch)
treeae1238d8cd41cba3830290bc288351b722556a04
parent2c00ec17b9edaa92e6bc40a778c5d5bfa25eab9b (diff)
Don't use cg.cg_niblk but fs.fs_ipg; the former has no meaning any more.
Fixes PR 5494; with pedro@; ok pedro@ millert@
-rw-r--r--sbin/fsck_ffs/pass5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/pass5.c b/sbin/fsck_ffs/pass5.c
index 498434194e9..1efb1a02bd3 100644
--- a/sbin/fsck_ffs/pass5.c
+++ b/sbin/fsck_ffs/pass5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pass5.c,v 1.32 2007/05/18 19:21:34 millert Exp $ */
+/* $OpenBSD: pass5.c,v 1.33 2007/06/01 14:26:08 otto Exp $ */
/* $NetBSD: pass5.c,v 1.16 1996/09/27 22:45:18 christos Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)pass5.c 8.6 (Berkeley) 11/30/94";
#else
-static const char rcsid[] = "$OpenBSD: pass5.c,v 1.32 2007/05/18 19:21:34 millert Exp $";
+static const char rcsid[] = "$OpenBSD: pass5.c,v 1.33 2007/06/01 14:26:08 otto Exp $";
#endif
#endif /* not lint */
@@ -220,7 +220,7 @@ pass5(void)
newcg->cg_initediblk = 0;
newcg->cg_niblk = cg->cg_niblk;
if (cg->cg_irotor >= 0 &&
- cg->cg_irotor < newcg->cg_niblk)
+ cg->cg_irotor < fs->fs_ipg)
newcg->cg_irotor = cg->cg_irotor;
} else {
newcg->cg_ncyl = 0;