[LU-12327] DNE3: add llapi_dir_create_from_xattr() and llapi_dir_default_from_xattr() Created: 22/May/19  Updated: 17/Sep/21

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: dne3

Issue Links:
Related
is related to LU-11264 llapi_* routines demonstrate poor per... Open
Rank (Obsolete): 9223372036854775807

 Description   

In order to simplify backup/restore of DNE striped directories, it would be useful to have new llapi_dir_create_from_xattr() and llapi_dir_default_from_xattr() interfaces that can use the raw trusted.lmv xattr read from the directory.

We may also consider allowing setxattr(dirfd, "trusted.lmv") on a (empty?) directory to trigger DNE restriping of the directory. If the directory is empty, this is a trivial operation, and would allow tools like tar and possibly rsync to properly backup and restore directories without the need for specialized tools.

As with file striping, the setxattr() and llapi_dir_*_from_xattr() interfaces should take the xattrs as a hint, using only the header information (lum_stripe_count, lum_hash_type) as applicable to the local filesystem configuration (e.g. limit lum_stripe_count to the local number of MDTs) and ignoring specific MDT assignments.


Generated at Sat Feb 10 02:51:36 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.