NetBSD-Bugs archive

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

bin/45299: fsck_lfs misreports fbmask



>Number:         45299
>Category:       bin
>Synopsis:       fsck_lfs misreports fbmask
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 26 15:30:00 +0000 2011
>Originator:     NAKAJIMA Yoshihiro
>Release:        NetBSD-current/20110826
>Organization:
>Environment:
System: NetBSD asura 5.99.55 NetBSD 5.99.55 (ASURA) #6: Fri Aug 26 20:48:08 JST 
2011 nakayosh@asura:/usr/src/sys/arch/amd64/compile/ASURA amd64
Architecture: x86_64
Machine: amd64
>Description:
        fsck_lfs misreports fbmask.
>How-To-Repeat:
>Fix:
diff -u src/sbin/fsck_lfs/setup.c.ORIG src/sbin/fsck_lfs/setup.c
--- src/sbin/fsck_lfs/setup.c.ORIG      2010-02-17 08:20:30.000000000 +0900
+++ src/sbin/fsck_lfs/setup.c   2011-08-27 00:15:24.000000000 +0900
@@ -367,8 +367,8 @@
                }
        }
        if (fs->lfs_fbmask != (1 << fs->lfs_fbshift) - 1) {
-               pwarn("INCORRECT FFMASK=%" PRId64 " IN SUPERBLOCK",
-                   fs->lfs_ffmask);
+               pwarn("INCORRECT FBMASK=%" PRId64 " IN SUPERBLOCK",
+                   fs->lfs_fbmask);
                fs->lfs_fbmask = (1 << fs->lfs_fbshift) - 1;
                if (preen)
                        printf(" (FIXED)\n");



Home | Main Index | Thread Index | Old Index