== sanity-lfsck test 24: LFSCK can repair multiple-referenced name entry ========================================================== 05:05:05 (1713431105) ##### Two MDT-objects back reference the same name entry via their each own linkEA entry, but the name entry only references one MDT-object. The namespace LFSCK will remove the linkEA entry for the MDT-object that is not recognized. If such MDT-object has no other linkEA entry after the removing, then the LFSCK will add it as orphan under the .lustre/lost+found/MDTxxxx/. ##### [0x2400013a2:0x8:0x0] [0x2400013a2:0x9:0x0] Inject failure stub on MDT0 to simulate the case that the /mnt/lustre/d24.sanity-lfsck/d0/dummy/foo has the 'bad' linkEA entry that references /mnt/lustre/d24.sanity-lfsck/d0/guard/foo. Then remove the name entry /mnt/lustre/d24.sanity-lfsck/d0/dummy/foo. So the MDT-object /mnt/lustre/d24.sanity-lfsck/d0/dummy/foo will be left there with the same linkEA entry as another MDT-object /mnt/lustre/d24.sanity-lfsck/d0/guard/foo has fail_loc=0x1622 [0x2000013a3:0x8d:0x0] fail_loc=0 stat /mnt/lustre/d24.sanity-lfsck/d0/dummy/foo should fail Trigger namespace LFSCK to repair multiple-referenced name entry Started LFSCK on the device lustre-MDT0000: scrub namespace There should be an orphan under .lustre/lost+found/MDT0000/ total 8 144115272414920845 drwxr-xr-x 2 root root 4096 Apr 18 05:05 . 144115205306056705 drwx------ 3 root root 4096 Apr 18 05:04 ..