Description
"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