[Virtio-fs] [PATCH 1/2] vitriofsd/passthrough_ll: Make fallocate() work

2020-01-13 Thread Xiao Yang
1) Use correct CONFIG_FALLOCATE macro to check if fallocate() is supported.(i.e configure script sets CONFIG_FALLOCATE intead of HAVE_FALLOCATE if fallocate() is supported) 2) Avoid 'Bad file descriptor' error by passing correct fd to fallocate(). Signed-off-by: Xiao Yang ---

Re: [Virtio-fs] [PATCH] virtiofsd: Fix xattr operations

2020-01-13 Thread Vivek Goyal
On Fri, Jan 10, 2020 at 10:07:22AM +0900, Misono Tomohiro wrote: [..] > --- a/tools/virtiofsd/passthrough_ll.c > +++ b/tools/virtiofsd/passthrough_ll.c > @@ -133,6 +133,7 @@ struct lo_inode { > GHashTable *posix_locks; /* protected by lo_inode->plock_mutex */ > > bool is_symlink; > +

Re: [Virtio-fs] [PATCH] virtiofsd: Fix xattr operations

2020-01-13 Thread Miklos Szeredi
On Mon, Jan 13, 2020 at 7:42 PM Vivek Goyal wrote: > > On Fri, Jan 10, 2020 at 10:07:22AM +0900, Misono Tomohiro wrote: > > [..] > > --- a/tools/virtiofsd/passthrough_ll.c > > +++ b/tools/virtiofsd/passthrough_ll.c > > @@ -133,6 +133,7 @@ struct lo_inode { > > GHashTable *posix_locks; /*

Re: [Virtio-fs] [PATCH] virtiofsd: Fix xattr operations

2020-01-13 Thread misono.tomoh...@fujitsu.com
> On Mon, Jan 13, 2020 at 7:42 PM Vivek Goyal wrote: > > > > On Fri, Jan 10, 2020 at 10:07:22AM +0900, Misono Tomohiro wrote: > > > > [..] > > > --- a/tools/virtiofsd/passthrough_ll.c > > > +++ b/tools/virtiofsd/passthrough_ll.c > > > @@ -133,6 +133,7 @@ struct lo_inode { > > > GHashTable

Re: [Virtio-fs] [PATCH] virtiofsd: Fix xattr operations

2020-01-13 Thread Miklos Szeredi
On Tue, Jan 14, 2020 at 2:17 AM misono.tomoh...@fujitsu.com wrote: > > > On Mon, Jan 13, 2020 at 7:42 PM Vivek Goyal wrote: > > > > > > On Fri, Jan 10, 2020 at 10:07:22AM +0900, Misono Tomohiro wrote: > > > > > > [..] > > > > --- a/tools/virtiofsd/passthrough_ll.c > > > > +++