fuse-rs icon indicating copy to clipboard operation
fuse-rs copied to clipboard

Listxattr reply

Open dswd opened this issue 8 years ago • 1 comments
trafficstars

The method signature of listxattr gives me a ReplyXattr for a reply. But it does not state how one should encode a list of attribute names into a &[u8] to be able to use ReplyXattr::data(). Is there any documentation on this?

dswd avatar Apr 13 '17 13:04 dswd

See the documentation for the system call in man listxattr.

You should return a list of NUL-terminated UTF-8 strings. Also note that the names have to start with user. if you want them to show up in most userspace tools.

i.e. return b"user.foo\0user.bar\0"

wfraser avatar May 24 '17 20:05 wfraser