diff options
author | mckusick <mckusick@FreeBSD.org> | 2002-05-02 01:03:06 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2002-05-02 01:03:06 +0000 |
commit | b59de1dbbb9fec4564d609d8ae32ab3686fe4c98 (patch) | |
tree | 7d5f6fe48b6bb06c95b3e87b8197a47420ec4c75 /sbin/fsck_ffs/pass5.c | |
parent | d779b4edb000c437c918698656f8b96dd5afd329 (diff) | |
download | FreeBSD-src-b59de1dbbb9fec4564d609d8ae32ab3686fe4c98.zip FreeBSD-src-b59de1dbbb9fec4564d609d8ae32ab3686fe4c98.tar.gz |
Minor bug fixes uncovered while working on UFS2.
They should have no effect on existing systems.
Diffstat (limited to 'sbin/fsck_ffs/pass5.c')
-rw-r--r-- | sbin/fsck_ffs/pass5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/pass5.c b/sbin/fsck_ffs/pass5.c index e927ff5..1d73dc8 100644 --- a/sbin/fsck_ffs/pass5.c +++ b/sbin/fsck_ffs/pass5.c @@ -186,7 +186,7 @@ pass5(void) dmax = fs->fs_size; newcg->cg_time = cg->cg_time; newcg->cg_cgx = c; - if (c == fs->fs_ncg - 1) + if (c == fs->fs_ncg - 1 && fs->fs_ncyl % fs->fs_cpg > 0) newcg->cg_ncyl = fs->fs_ncyl % fs->fs_cpg; else newcg->cg_ncyl = fs->fs_cpg; |