]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: don't report any vxattrs to listxattr 29339/head
authorJeff Layton <jlayton@redhat.com>
Thu, 25 Jul 2019 19:54:58 +0000 (15:54 -0400)
committerJeff Layton <jlayton@redhat.com>
Fri, 26 Jul 2019 10:09:54 +0000 (06:09 -0400)
commitbc0f7e18d58d364f03b55c0c980731bda8e7f540
treec3b79c9e1e12d54829400a34be291d034d123d89
parenta29700e5e7b518d1fb3099dec464010cf57a4580
client: don't report any vxattrs to listxattr

The convention with kernel filesystems is to not report vxattrs when
listxattr is called. Doing this can throw a wrench to archiving tools
that will attempt to restore files with xattrs intact, only to find
that some of them can't be stored.

Remove the code that prints out vxattrs in listxattr. With this we
also don't need the "hidden" flag in the vxattr definitions.

Also fix up the existing testcases to account for the change in
behavior.

Fixes: https://tracker.ceph.com/issues/40965
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc
src/client/Client.h
src/test/libcephfs/test.cc