bin/107692: newfs(8): newfs -O 1 doesn't create consistent filesystems

Bruce Cran bruce.cran at gmail.com
Sun Jun 7 05:00:16 UTC 2009


The following reply was made to PR bin/107692; it has been noted by GNATS.

From: Bruce Cran <bruce.cran at gmail.com>
To: bug-followup at FreeBSD.org, ghelmer at palisadesys.com
Cc:  
Subject: Re: bin/107692: newfs(8): newfs -O 1 doesn't create consistent 
	filesystems
Date: Sun, 7 Jun 2009 05:58:11 +0100

 This error doesn't occur when passing a block size of 32768 to newfs.
 Debugging fsck_ffs, the following mismatch is seen with the
 inconsistent filesystem:
 
 Starting program: /sbin/fsck_ffs /dev/md0
 ** /dev/md0
 ** Last Mounted on
 ** Phase 1 - Check Blocks and Sizes
 ** Phase 2 - Check Pathnames
 ** Phase 3 - Check Connectivity
 ** Phase 4 - Check Reference Counts
 ** Phase 5 - Check Cyl groups
 
 Breakpoint 1, pass5 () at /usr/src/sbin/fsck_ffs/pass5.c:352
 352		if (cursnapshot == 0 &&
 (gdb) print cstotal
 $1 = {cs_ndir = 2, cs_nbfree = 1631816, cs_nifree = 3333116, cs_nffree = 21,
   cs_numclusters = 0, cs_spare = {0, 0, 0}}
 (gdb) print fs->fs_cstotal
 $2 = {cs_ndir = 0, cs_nbfree = 1631818, cs_nifree = 3333118, cs_nffree = 7,
   cs_numclusters = 0, cs_spare = {0, 0, 0}}


More information about the freebsd-bugs mailing list