<div>Kernel: 2.6.30.9, XFS backported from 2.6.34, xfsprogs-3.0.5</div>
<div> </div>
<div>I used a script</div>
<div>1. create some file, directories, symlinks</div>
<div>2. unmount the file system</div>
<div>3. run xfs_bd with blocktrash</div>
<div>4. xfs_xfsrepair -L</div>
<div>5. list "ls -lR"</div>
<div>6. remove all file and directory "rm -rf *</div>
<div> </div>
<div>Often during testing I get the below backtrace from kernel during ls, rm even though I already run xfs_repair on it.</div>
<div>Is it related to xfsrepair or xfs ?. I think xfs_repair must have detected this problem and corrected it.</div>
<div> </div>
<div>There is similar problem already reported by</div>
<div><a href="http://oss.sgi.com/archives/xfs/2010-06/msg00349.html">http://oss.sgi.com/archives/xfs/2010-06/msg00349.html</a></div>
<div> </div>
<div>xfs_repair log</div>
<div>-------------------</div>
<div>xfs_repair -L /dev/sda1<br>Phase 1 - find and verify superblock...<br>Phase 2 - using internal log<br> - zero log...<br> - scan filesystem freespace and inode maps...<br> - found root inode chunk<br>
Phase 3 - for each AG...<br> - scan and clear agi unlinked lists...<br> - process known inodes and perform inode discovery...<br> - agno = 0<br> - agno = 1<br> - agno = 2<br> - agno = 3<br>
- process newly discovered inodes...<br>Phase 4 - check for duplicate blocks...<br> - setting up duplicate extent list...<br> - check for inodes claiming duplicate blocks...<br> - agno = 0<br>
- agno = 1<br> - agno = 2<br> - agno = 3<br>Phase 5 - rebuild AG headers and trees...<br> - reset superblock...<br>Phase 6 - check inode connectivity...<br> - resetting contents of realtime bitmap and summary inodes<br>
- traversing filesystem ...<br> - traversal finished ...<br> - moving disconnected inodes to lost+found ...<br>Phase 7 - verify and correct link counts...<br>done</div>
<div> </div>
<div> </div>
<div>xfs log duing ls operation</div>
<div>------------------------------------</div>
<div> </div>
<div><span lang="">drwxr-xr-x 2 root 0 6 Jan 1 00:00 9.dir1</span></div>
<div>
<p>drwxr-xr-xFilesystem "sda1": corrupt dinode 8053, has realtime flag set. Unmount and run xfs_repair.</p>
<p>c803e500: 49 4e a1 ff 02 01 00 00 00 00 00 00 00 00 00 00 IN..............</p>
<p>Filesystem "sda1": XFS internal error xfs_iformat(realtime) at line 356 of file fs/xfs/xfs_inode.c. Caller 0xc019b328</p>
<p>Backtrace: </p>
<p>[<c00279b0>] (dump_backtrace+0x0/0x110) from [<c02f2bd0>] (dump_stack+0x18/0x1c)</p>
<p>r6:c8962400 r5:c039db13 r4:00000001 r3:c89d1be8</p>
<p>[<c02f2bb8>] (dump_stack+0x0/0x1c) from [<c018fa54>] (xfs_error_report+0x4c/0x5c)</p>
<p>[<c018fa08>] (xfs_error_report+0x0/0x5c) from [<c018fac0>] (xfs_corruption_error+0x5c/0x68)</p>
<p>[<c018fa64>] (xfs_corruption_error+0x0/0x68) from [<c019ae38>] (xfs_iformat+0x1b4/0x5dc)</p>
<p>r6:c019b328 r5:c8cf0be0 r4:c803e500</p>
<p>[<c019ac84>] (xfs_iformat+0x0/0x5dc) from [<c019b328>] (xfs_iread+0xc8/0x198)</p>
<p>r9:00001f75 r8:c8962400 r7:00000000 r6:00000000 r5:c803e500</p>
<p>r4:c8cf0be0</p>
<p>[<c019b260>] (xfs_iread+0x0/0x198) from [<c0195294>] (xfs_iget+0x558/0x8c4)</p>
<p>[<c0194d3c>] (xfs_iget+0x0/0x8c4) from [<c01b4b28>] (xfs_lookup+0x128/0x15c)</p>
<p>[<c01b4a00>] (xfs_lookup+0x0/0x15c) from [<c01c1ab4>] (xfs_vn_lookup+0x48/0x90)</p>
<p>[<c01c1a6c>] (xfs_vn_lookup+0x0/0x90) from [<c00c7da8>] (do_lookup+0xcc/0x194)</p>
<p>r6:c8c66d6c r5:c89d1e08 r4:c89d1e90</p>
<p>[<c00c7cdc>] (do_lookup+0x0/0x194) from [<c00c9a30>] (__link_path_walk+0x9b8/0xe68)</p>
<p>[<c00c9078>] (__link_path_walk+0x0/0xe68) from [<c00ca08c>] (path_walk+0x50/0x9c)</p>
<p>[<c00ca03c>] (path_walk+0x0/0x9c) from [<c00ca258>] (do_path_lookup+0x138/0x160)</p>
<p>r7:00000001 r6:c89d1e90 r5:c89d0000 r4:c89f2000</p>
<p>[<c00ca120>] (do_path_lookup+0x0/0x160) from [<c00cac64>] (user_path_at+0x60/0x94)</p>
<p>r7:c89d1f08 r6:ffffff9c r5:c89d1e90 r4:c89f2000</p>
<p>[<c00cac04>] (user_path_at+0x0/0x94) from [<c00c2bb8>] (vfs_fstatat+0x34/0x64)</p>
<p>r8:c0023528 r7:000000c4 r6:00182320 r5:c89d1f40 r4:c89d1f08</p>
<p>[<c00c2b84>] (vfs_fstatat+0x0/0x64) from [<c00c2c48>] (vfs_lstat+0x24/0x28)</p>
<p>r6:00182320 r5:beb476b8 r4:c89d1f40</p>
<p>[<c00c2c24>] (vfs_lstat+0x0/0x28) from [<c00c2c6c>] (sys_lstat64+0x20/0x3c)</p>
<p>[<c00c2c4c>] (sys_lstat64+0x0/0x3c) from [<c0023380>] (ret_fast_syscall+0x0/0x2c)</p>
<p>r5:001895a0 r4:00000000</p>
<p>2 root 0 6 Jan 1 00:00 9.dir2</p>
<p>drwxr-xr-x 2 root 0 6 Jan 1 00:00 9.dir3</p></div>