Currently xattr operations on virtiofs does not work properly in some case: - directory ... cannot set - special files (pipe) ... cause hang
This fixes these problems and now xfstests generic/062 passes on virtiofs with -o xattr option (I tested with xfs). v3 -> v4: - No logic change - Some code style fix/update comments and commit log as suggested by Vivek - CC qemu-devel ML too Previous versions can be found in virtiofs ML: v3: https://www.redhat.com/archives/virtio-fs/2020-February/msg00032.html Thanks, Misono Tomohiro (2): virtiofsd: passthrough_ll: cleanup getxattr/listxattr virtiofsd: Fix xattr operations tools/virtiofsd/fuse_virtio.c | 13 +++ tools/virtiofsd/passthrough_ll.c | 139 ++++++++++++++++--------------- tools/virtiofsd/seccomp.c | 6 ++ 3 files changed, 89 insertions(+), 69 deletions(-) -- 2.21.1