[Virtio-fs] [PATCH 0/2] virtiofsd: Two fix for xattr operation
Stefan Hajnoczi
stefanha at gmail.com
Fri Oct 18 10:09:09 UTC 2019
On Fri, Oct 18, 2019 at 09:16:36AM +0200, Miklos Szeredi wrote:
> On Thu, Oct 17, 2019 at 6:48 PM Miklos Szeredi <mszeredi at redhat.com> wrote:
>
> > Even simpler: allow O_PATH descriptors for f*xattr().
>
> Attached patch. Will post shortly.
>
> However, I think it would make sense to fix virtiofsd as well, as this
> will take time to percolate down, even if Al doesn't find anything
> wrong with it.
>
> Doing unshare(CLONE_FS) after thread startup seems safe, though must
> be careful to change the working directory to the root of the mount
> *before* starting any threads.
Thank you for extending O_PATH, that's great! This will be the cleanest
way to perform xattr operations.
If your patch is accepted I will send a man-pages.git patch to update
the open(2) O_PATH documentation (with a minimum kernel version).
I've added the unshare(CLONE_FS) task to my todo list in case no one
else gets to it first. I may not have time to work on it before
Novemeber though.
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virtio-fs/attachments/20191018/a36b28c9/attachment.sig>
More information about the Virtio-fs
mailing list