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
---
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;
> +
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; /*
> 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
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
> > > > +++