DNE2: striped directory (LU-3531)

[LU-3532] rename under same striped directory Created: 29/Jun/13  Updated: 22/Dec/15  Resolved: 14/Aug/15

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

Type: Technical task Priority: Major
Reporter: Di Wang Assignee: Di Wang
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-3537 allow cross-MDT for all metadata oper... Resolved
Rank (Obsolete): 8896

 Description   

Client sends the rename request to the MDT where the master stripe of the source parent is located. If rename happens in the same stripe, it would be the same as rename in the same directory. If the rename happens under the same striped directory, but between different stripes on different MDTs. (mv dir_S/src dir_S/tgt, dir_S is striped directory, MDT0 holds the master stripe, MDT1 holds src, MDT2 holds tgt).

1. Client sends the rename request to MDT2.
2. MDT2 acquires the LDLM locks (both inode bits and hash of the file name) of the source and target stripe according to their FID order.
3. MDT1 deletes entry src, sets mtime of the stripe, updates linkEA of src, and if src is directory, decreases the nlink of the local stripe.
4. MDT2 deletes entry tgt, inserts entry src, and if tgt is directory, increases the nlink of the local stripe.



 Comments   
Comment by Di Wang [ 14/Aug/15 ]

the patch has landed to master

Comment by Andreas Dilger [ 22/Dec/15 ]

This was implemented in http://review.whamcloud.com/12282 and landed for 2.8.0.

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