All of lore.kernel.org
 help / color / mirror / Atom feed
* [Virtio-fs] [PATCH v3 0/2] Fix xattr operation
@ 2020-02-20 11:47 Misono Tomohiro
  2020-02-20 11:47 ` [Virtio-fs] [PATCH v3 1/2] virtiofs: passthrough_ll: cleanup getxattr/listxattr Misono Tomohiro
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Misono Tomohiro @ 2020-02-20 11:47 UTC (permalink / raw)
  To: virtio-fs; +Cc: vgoyal

This fixes the xattr operation for directory and special files
(which can be tested by xfstests generic/062 with -o xattr option).

The overall logic is switched back to the same as v1 in favor of performance
(i.e. keep original implementation for regular files/directories)
but I add a cleanup patch to improve readability as requested by Vivek.

Known issue is that if xattr enabled, seek sanity tests (generic/285,
436) will fail. However, I understand this is not a very serious bug
like data corruption so leave it for now.

One question; I remove error handling of fchdir() in v3 since
I believe fchdir to proc_self_fd/root.fd cannot fail in the situation
but should I add error handling?

change v2 -> v3:
 - rebased to current dev branch
 - add cleanup path (first one) to simplify main patch (second patch)
 - restore the logic of v1 in favor of performance
   (as a result seek sanity test failure is not fixed by this series) 
 - remove error handling of fchdir
 - drop ACL fix included in v2 for now to focus xattr
 
v2 patch: https://www.redhat.com/archives/virtio-fs/2020-January/msg00131.html

Thanks!

Misono Tomohiro (2):
  virtiofs: passthrough_ll: cleanup getxattr/listxattr
  virtiofs: Fix xattr operations

 tools/virtiofsd/fuse_virtio.c    |  13 +++
 tools/virtiofsd/passthrough_ll.c | 141 +++++++++++++++----------------
 tools/virtiofsd/seccomp.c        |   6 ++
 3 files changed, 87 insertions(+), 73 deletions(-)

-- 
2.21.1



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-02-28 13:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-20 11:47 [Virtio-fs] [PATCH v3 0/2] Fix xattr operation Misono Tomohiro
2020-02-20 11:47 ` [Virtio-fs] [PATCH v3 1/2] virtiofs: passthrough_ll: cleanup getxattr/listxattr Misono Tomohiro
2020-02-21 15:49   ` Vivek Goyal
2020-02-20 11:47 ` [Virtio-fs] [PATCH v3 2/2] virtiofs: Fix xattr operations Misono Tomohiro
2020-02-21 16:20   ` Vivek Goyal
2020-02-21 15:18 ` [Virtio-fs] [PATCH v3 0/2] Fix xattr operation Vivek Goyal
2020-02-27  5:16   ` misono.tomohiro
2020-02-28 13:00     ` Vivek Goyal
2020-02-21 18:50 ` Vivek Goyal
2020-02-27  5:20   ` misono.tomohiro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.