kern/104133: [ext2fs] EXT2FS module corrupts EXT2/3 filesystems

Bjoern Voigt bjoern at cs.tu-berlin.de
Sun Oct 22 09:20:30 PDT 2006


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

From: Bjoern Voigt <bjoern at cs.tu-berlin.de>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: kern/104133: [ext2fs] EXT2FS module corrupts EXT2/3 filesystems
Date: Sun, 22 Oct 2006 18:13:16 +0200

 The problem is probably unrelated to EXT3's journal. The ext2fs module 
 could simply ignore the journal like Linux's ext2 module.
 
 In the attached journal there are many errors like this: "Inode 2026233 
 has a bad extended attribute block 4130036.  Clear<y>"
 
 I mounted the file system with these options in Linux:
 
 /dev/hdb6            /                    ext3       
 defaults,user_xattr   1 1
 
 May be FreeBSDs ext2fs module does not handle extended attributes right?
 
 
 
 
 
 mybox# e2fsck /dev/ad1s6
 /dev/ad1s6: 29865/128520 files (4.0% non-contiguous), 346697/514048 blocks
 /dev/ad1s7: Inode 376345, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s7: Inode 376338, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 376342, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 376323, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 376337, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 376339, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 376341, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 376343, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 376340, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 376336, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 2004133, i_blocks is 48, should be 56.  FIXED.
 /dev/ad1s7: Inode 2004142, i_blocks is 80, should be 88.  FIXED.
 /dev/ad1s7: Inode 2004159, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 2004164, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 2004230, i_blocks is 24, should be 32.  FIXED.
 /dev/ad1s7: Inode 2004149, i_blocks is 56, should be 64.  FIXED.
 /dev/ad1s7: Inode 2004184, i_blocks is 40, should be 48.  FIXED.
 /dev/ad1s7: Inode 2004231, i_blocks is 24, should be 32.  FIXED.
 /dev/ad1s7: Inode 2004156, i_blocks is 24, should be 32.  FIXED.
 /dev/ad1s7: Inode 2004212, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 2004228, i_blocks is 24, should be 32.  FIXED.
 /dev/ad1s7: Inode 2004527, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 2004129, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 2004141, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s7: Inode 2004192, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 2004226, i_blocks is 56, should be 64.  FIXED.
 /dev/ad1s7: Inode 2004195, i_blocks is 16, should be 24.  FIXED.
 /dev/ad1s7: Inode 2004239, i_blocks is 48, should be 56.  FIXED.
 /dev/ad1s7: Inode 2004217, i_blocks is 32, should be 40.  FIXED.
 /dev/ad1s7: Inode 2007616, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s7: Inode 2023789, i_blocks is 88, should be 96.  FIXED.
 /dev/ad1s7: Inode 2026233 has a bad extended attribute block 4130036.  
 
 /dev/ad1s7: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
     (i.e., without -a or -p options)
 
 /dev/ad1s9: 1031163/3276800 files (10.9% non-contiguous), 
 5273863/6552504 blocks
 /dev/ad1s8: Inode 657, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 663, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 708, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 739, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 678, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 810, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 705, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 689, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 822, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 827, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 905, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 835, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 849, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 637, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 636, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 650, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 646, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 647, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 652, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 834, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 906, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 638, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 641, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 645, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 658, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 824, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 656, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 653, i_blocks is 8, should be 16.  FIXED.
 /dev/ad1s8: Inode 142375, i_blocks is 80, should be 88.  FIXED.
 /dev/ad1s8: Extended attribute block 24210 has reference count 1, should 
 be 2.  
 
 /dev/ad1s8: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
     (i.e., without -a or -p options)
 mybox#
 mybox# e2fsck /dev/ad1s7
 e2fsck 1.39 (29-May-2006)
 /dev/ad1s7 contains a file system with errors, check forced.
 Pass 1: Checking inodes, blocks, and sizes
 Inode 2026233 has a bad extended attribute block 4130036.  Clear<y>? yes
 
 Inode 2026236 has a bad extended attribute block 4132383.  Clear<y>? yes
 
 Inode 2026229 has a bad extended attribute block 4182190.  Clear<y>? yes
 
 Inode 2026231 has a bad extended attribute block 4182196.  Clear<y>? yes
 
 Inode 2026238 has a bad extended attribute block 4185475.  Clear<y>? yes
 
 Inode 2026243 has a bad extended attribute block 4188981.  Clear<y>? yes
 
 Inode 2026241 has a bad extended attribute block 4189402.  Clear<y>? yes
 
 Inode 2037265 has a bad extended attribute block 4306813.  Clear<y>? yes
 
 Inode 2037266 has a bad extended attribute block 4306842.  Clear<y>? yes
 
 Inode 2037232 has a bad extended attribute block 4312180.  Clear<y>? yes
 
 Inode 2037262 has a bad extended attribute block 4312808.  Clear<y>? yes
 
 Pass 2: Checking directory structure
 Pass 3: Checking directory connectivity
 Pass 3A: Optimizing directories
 Pass 4: Checking reference counts
 Pass 5: Checking group summary information
 Block bitmap differences:  +754512 +754954 +(755140--755141) +755279 
 +755360 +(755421--755422) +755461 +755494 +4035038 +4035043 +4035059 
 +(4035223--4035224) +4035600 +(4035602--4035603) +(4035626--4035628) 
 +4042808 +(4048376--4048378) +4051224 +4057224 -4116921
 Fix<y>? yes
 
 Free blocks count wrong for group #23 (25295, counted=25285).
 Fix<y>? yes
 
 Free blocks count wrong for group #123 (244, counted=227).
 Fix<y>? yes
 
 Free blocks count wrong for group #125 (3, counted=4).
 Fix<y>? yes
 
 Free blocks count wrong (430390, counted=430364).
 Fix<y>? yes
 
 
 /dev/ad1s7: ***** FILE SYSTEM WAS MODIFIED *****
 /dev/ad1s7: 485123/2231456 files (8.0% non-contiguous), 4027665/4458029 
 blocks
 mybox# e2fsck /dev/ad1s7
 
 e2fsck 1.39 (29-May-2006)
 /dev/ad1s8 contains a file system with errors, check forced.
 Pass 1: Checking inodes, blocks, and sizes
 Extended attribute block 24210 has reference count 1, should be 2.  
 Fix<y>? yes
 
 Extended attribute block 24211 has reference count 1, should be 2.  
 Fix<y>? yes
 
 Extended attribute block 24259 has reference count 1, should be 2.  
 Fix<y>? yes
 
 Extended attribute block 24260 has reference count 1, should be 2.  
 Fix<y>? yes
 
 Extended attribute block 24261 has reference count 1, should be 2.  
 Fix<y>? yes
 
 Extended attribute block 24262 has reference count 1, should be 2.  
 Fix<y>? yes
 
 Extended attribute block 24263 has reference count 1, should be 2.  
 Fix<y>? yes
 
 Extended attribute block 24264 has reference count 1, should be 2.  
 Fix<y>? yes
 
 Pass 2: Checking directory structure
 yyPass 3: Checking directory connectivity
 Pass 3A: Optimizing directories
 Pass 4: Checking reference counts
 Pass 5: Checking group summary information
 Block bitmap differences:  +45033 +(45035--45038) +45240 +45272 
 +(45420--45422) +46135 +(46143--46144) +46189 +(46191--46193) +46203 
 +(46214--46215)
 Fix<y>? yes
 
 Free blocks count wrong for group #1 (13041, counted=13021).
 Fix<y>? yes
 
 Free blocks count wrong (30737, counted=30717).
 Fix<y>? yes
 
 
 /dev/ad1s8: ***** FILE SYSTEM WAS MODIFIED *****
 /dev/ad1s8: 49482/157760 files (8.1% non-contiguous), 284550/315267 blocks
 


More information about the freebsd-bugs mailing list