Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/resize_ffs Don't special-case v1 superblocks - especial...



details:   https://anonhg.NetBSD.org/src/rev/ca9a96e5e8eb
branches:  trunk
changeset: 759637:ca9a96e5e8eb
user:      riz <riz%NetBSD.org@localhost>
date:      Tue Dec 14 04:04:20 2010 +0000

description:
Don't special-case v1 superblocks - especially with an incorrect
calculation.

diffstat:

 sbin/resize_ffs/resize_ffs.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (18 lines):

diff -r 8cace29db1d1 -r ca9a96e5e8eb sbin/resize_ffs/resize_ffs.c
--- a/sbin/resize_ffs/resize_ffs.c      Tue Dec 14 03:25:16 2010 +0000
+++ b/sbin/resize_ffs/resize_ffs.c      Tue Dec 14 04:04:20 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: resize_ffs.c,v 1.21 2010/12/12 22:48:59 riz Exp $      */
+/*     $NetBSD: resize_ffs.c,v 1.22 2010/12/14 04:04:20 riz Exp $      */
 /* From sources sent on February 17, 2003 */
 /*-
  * As its sole author, I explicitly place this code in the public
@@ -948,8 +948,6 @@
                oldcgsize = oldsb->fs_size % oldsb->fs_fpg;
                set_bits(cg_blksfree(cg, 0), oldcgsize, newcgsize - oldcgsize);
                cg->cg_old_ncyl = oldsb->fs_old_cpg;
-               if ((newsb->fs_old_flags & FS_FLAGS_UPDATED) == 0)
-                       cg->cg_old_ncyl = newsb->fs_old_ncyl % newsb->fs_old_cpg;
                cg->cg_ndblk = newcgsize;
        }
        /* Fix up the csum info, if necessary. */



Home | Main Index | Thread Index | Old Index