fuse-rs
fuse-rs copied to clipboard
Listxattr reply
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?
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"