LFSCK 3: MDT-MDT consistency verification (LU-4788)

[LU-5509] LFSCK 3: get PFID from linkEA for remote directory on ldiskfs Created: 20/Aug/14  Updated: 15/Sep/14  Resolved: 15/Sep/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.7.0
Fix Version/s: Lustre 2.7.0

Type: Technical task Priority: Major
Reporter: nasf (Inactive) Assignee: nasf (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 15366

 Description   

For the ldiskfs backend, for a directory which parent resides on remote MDT, to satisfy the local e2fsck, we insert it into the /REMOTE_PARENT_DIR locally. On the other hand, to make the lookup(..) on the directory can return the real parent FID, we append the real parent FID after its ".." name entry in the /REMOTE_PARENT_DIR.

Unfortunately, such PFID-in-dirent cannot be preserved via file-level backup. So after the restore, we cannot get the right parent FID from its ".." name entry in the /REMOTE_PARENT_DIR. Under such case, since we have stored the real parent FID in the directory object's linkEA, we can parse the linkEA for the real parent FID.



 Comments   
Comment by nasf (Inactive) [ 20/Aug/14 ]

Here is the patch:
http://review.whamcloud.com/#/c/11485/

Comment by nasf (Inactive) [ 15/Sep/14 ]

The patch has been landed to master.

Generated at Sat Feb 10 01:52:05 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.