DNE2: striped directory (LU-3531)

[LU-3529] create striped directory Created: 29/Jun/13  Updated: 30/Mar/14  Resolved: 30/Mar/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.6.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-4657 add [--delete|-d] option for lfs set... Resolved
is related to LU-4600 Test failure on test suite conf-sanit... Closed
Rank (Obsolete): 8893

 Description   

This is a sub-task for striped directory in DNE phase II.

1. add setstripedir and getstripeddir to lfs.
2. add related changes to client side, llite ioctl, allocate fid for stripe, packed RPC etc.
3. The related process needs to change as well

created/looked up under stripe directory,

Client will first calculate the hash according to the name and lmv_hash_type of the striped directory, then get the MDT index according to the hash, and sends the create/lookup request to that MDT.

Readdir of striped directory
During readdir, client will iterate all of stripes, and for each stripe, it will get stripe lock, then read directory entries.

Getattr of striped directory

Client needs to walk through all of the stripes to get attributes from all of the stripe and then merge them together.
size/blocks/nlink: add all together from every stripe.
ctime/mtime/atime: choose the newest one as the xtime of the striped directory.
uid/gid: should be same for all stripes.

4. On the MDT side, in mdt_md_create, the master MDT sends object create updates to each remote MDT to create the stripes.



 Comments   
Comment by Di Wang [ 31/Jul/13 ]

http://review.whamcloud.com/7196

Comment by Jodi Levi (Inactive) [ 30/Mar/14 ]

Patch landed to Master. Please reopen this ticket if more work is needed.

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