[Ocfs2-tools-devel] [PATCH 0/6] Fix extent records for holes/overlaps

Tiger Yang tiger.yang at oracle.com
Thu Sep 15 00:09:35 PDT 2011


On 09/08/2011 09:31 AM, Goldwyn Rodrigues wrote:
> I tried recreating this on my system with fswreck and was unable to do so.
> On second looks, creation of "." and ".." entries works fine but
> re-creating the indexed directories errs. Again, the dirblock on which
> it errs is the same, 61467. Could you provide me the output of
> debugfs.ocfs2 dirblocks<dirname>  for the directory in question:
>
> 1. after creating the directory
> 2. after punching holes
> 3. after fsck.ocfs2
Hi, Goldwyn,

good news! I patched your 6 patches to the newest ocfs2-tools git tree, 
and tested them again with the 3.1.0 kernel, the result is good.
Patched fsck can fix the hole at the middle, but in case hole at the 
beginning, there is still the ".." directory issue can't be fixed.
Please see the attached log files. I recorded the logs as you expected.

after puch holes at the beginning:
fsck.ocfs2 -f /dev/sda10
fsck.ocfs2 1.8.0
Checking OCFS2 filesystem in /dev/sda10:
   Label: <NONE>
   UUID:               D550FC1A362A41E09E1DF1CF5DBE5FC9
   Number of blocks:   125676460
   Block size:         1024
   Number of clusters: 31419115
   Cluster size:       4096
   Number of slots:    8

/dev/sda10 was run with -f, check forced.
Pass 0a: Checking cluster allocation chains
Pass 0b: Checking inode allocation chains
Pass 0c: Checking extent block allocation chains
Pass 1: Checking inodes and blocks.
Pass 2: Checking directory entries.
Pass 3: Checking directory connectivity.
[DIR_DOTDOT] Directory inode 663558 is referenced by a dirent in 
directory 9 but its '..' entry points to inode 0. Fix the '..' entry to 
reference 9? <y> y
Didn't find a '..' entry to fix.
Pass 4a: checking for orphaned inodes
Pass 4b: Checking inodes link counts.
All passes succeeded.

Thanks,
Tiger

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: after_fsck_hole_at_beginning.log
Url: http://oss.oracle.com/pipermail/ocfs2-tools-devel/attachments/20110915/074af67f/attachment-0006.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: after_fsck_hole_at_middle.log
Url: http://oss.oracle.com/pipermail/ocfs2-tools-devel/attachments/20110915/074af67f/attachment-0007.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: after_punch_hole_at_beginning.log
Url: http://oss.oracle.com/pipermail/ocfs2-tools-devel/attachments/20110915/074af67f/attachment-0008.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: after_punch_hole_at_middle.log
Url: http://oss.oracle.com/pipermail/ocfs2-tools-devel/attachments/20110915/074af67f/attachment-0009.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: before_punch_hole_at_beginning.log
Url: http://oss.oracle.com/pipermail/ocfs2-tools-devel/attachments/20110915/074af67f/attachment-0010.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: before_punch_hole_at_middle.log
Url: http://oss.oracle.com/pipermail/ocfs2-tools-devel/attachments/20110915/074af67f/attachment-0011.pl 


More information about the Ocfs2-tools-devel mailing list