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

lfs find: add ability to print extended attributes

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • 3
    • 9223372036854775807

      "lfs find" should have a printf option to be able to print extended attributes of files.

       

      There are some design questions about the correct way for this to work:

      • which xattrs should actually get printed? Should it only print xattrs that are matched with a supplied "-xattr" argument? what if no xattr argument is supplied?
      • if multiple xattrs are printed per file should they be newline separated, or separated with some other character?
      • different formats for printing, e.g., text, hex, base64, etc?

       

      One of the main use cases for this would be printing job IDs for files that are matched with something like:
      lfs find -xattr "user.job=" /mnt/lustre

            wc-triage WC Triage
            bertschinger Thomas Bertschinger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: