Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-12327

DNE3: add llapi_dir_create_from_xattr() and llapi_dir_default_from_xattr()

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: