Subject: bin/16579: fsck_lfs corrupts superblock checksum
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jarle@uninett.no>
List: netbsd-bugs
Date: 04/30/2002 11:51:38
>Number:         16579
>Category:       bin
>Synopsis:       fsck_lfs corrupts superblock checksum
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 30 02:52:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jarle Greipsland
>Release:        NetBSD 1.5ZC
>Organization:
	
>Environment:
	
	
System: NetBSD honey.urc.uninett.no 1.5ZC NetBSD 1.5ZC (HONEY) #12: Fri Apr 26 11:42:49 CEST 2002     jarle@honey.urc.uninett.no:/usr/src/sys/arch/alpha/compile/HONEY alpha
Architecture: alpha
Machine: alpha

>Description:
It seems that the fsck utility for LFS partitions corrupts the
superblock checksum.  At least that what the fsck_lfs utility itself
thinks.
# newfs_lfs /dev/rraid0e
Creating a version 2 LFS with roll-forward ident 0xdbc047d
10227.0MB in 10227 segments of size 1048576
super-block backups (for fsck -b #) at:
16, 2093056, 4186112, 6279168, 8372224, 10465280, 12558336, 14651392, 
16744448, 18837504 
# fsck -t lfs -f /dev/rraid0e
** /dev/rraid0e
** Last Mounted on 
** Phase 0 - Check Segment Summaries and Inode Free List
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Segment Block Accounting
3 files, 146 used, 0 free 

UPDATE STANDARD SUPERBLOCKS? [yn] y


MARK FILE SYSTEM CLEAN? [yn] y


***** FILE SYSTEM WAS MODIFIED *****
# fsck -t lfs -f /dev/rraid0e
** /dev/rraid0e
Superblock checksum (62251) does not match computed checksum (62250)
** Last Mounted on 
** Phase 0 - Check Segment Summaries and Inode Free List
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Segment Block Accounting
3 files, 146 used, 0 free 

UPDATE STANDARD SUPERBLOCKS? [yn] y


***** FILE SYSTEM WAS MODIFIED *****
# fsck -t lfs -f /dev/rraid0e
** /dev/rraid0e
Superblock checksum (62251) does not match computed checksum (62250)
Superblock checksum (62251) does not match computed checksum (62250)
** Last Mounted on 
** Phase 0 - Check Segment Summaries and Inode Free List
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Segment Block Accounting
3 files, 146 used, 0 free 

UPDATE STANDARD SUPERBLOCKS? [yn] y


***** FILE SYSTEM WAS MODIFIED *****

I don't know whether this is just an annoyance, or a serious problem.
>How-To-Repeat:
Run fsck -f repeatedly on an LFS partition.
	
>Fix:
	
Don't know.
>Release-Note:
>Audit-Trail:
>Unformatted: