Re: [Virtio-fs] [PATCH] virtiofsd/helper: Add shared/no_shared options to help message

2020-03-04 Thread Xiao Yang
On 2020/3/5 2:54, Dr. David Alan Gilbert wrote: * Xiao Yang (ice_yangx...@163.com) wrote: From: Xiao Yang Also add a hint that user should start 'ireg' daemon before using shared cache. Apologies for the delay; I've squashed that into 'add initial support for shared versions'. Hi Dave

[Virtio-fs] [PATCH] virtiofsd: Remove fuse.h and struct fuse_module

2020-02-20 Thread Xiao Yang
All code in fuse.h and struct fuse_module are not used by virtiofsd so removing them is safe. Signed-off-by: Xiao Yang --- tools/virtiofsd/fuse.h | 1229 -- tools/virtiofsd/fuse_i.h | 16 - 2 files changed, 1245 deletions(-) delete mode 100644 tools

[Virtio-fs] [PATCH] virtiofsd/helper: Add shared/no_shared options to help message

2020-02-10 Thread Xiao Yang
From: Xiao Yang Also add a hint that user should start 'ireg' daemon before using shared cache. Signed-off-by: Xiao Yang --- tools/virtiofsd/helper.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/virtiofsd/helper.c b/tools/virtiofsd/helper.c index 819c2bc13c..0aa02b99b0 100644

Re: [Virtio-fs] [PATCH] virtiofsd: Remove unused enum fuse_buf_copy_flags

2020-01-22 Thread Xiao Yang
() still has 'req' parameter on this branch. Is it obsolete? https://gitlab.com/virtio-fs/qemu/blob/virtio-fs-dev/tools/virtiofsd/buffer.c#L270 Best Regards, Xiao Yang ___ Virtio-fs mailing list Virtio-fs@redhat.com https://www.redhat.com/mailman

[Virtio-fs] [PATCH] virtiofsd: Remove unused enum fuse_buf_copy_flags

2020-01-21 Thread Xiao Yang
Signed-off-by: Xiao Yang --- tools/virtiofsd/buffer.c | 7 +++-- tools/virtiofsd/fuse_common.h| 46 +--- tools/virtiofsd/fuse_lowlevel.c | 13 - tools/virtiofsd/fuse_lowlevel.h | 35 ++-- tools/virtiofsd/passthrough_ll.c | 4

[Virtio-fs] [PATCH] virtiofsd/passthrough_ll: Fix wrong output format in lo_setxattr()

2020-01-20 Thread Xiao Yang
: 0098] lo_setxattr(ino=3, name=user.test value=test size=4) --- Fixes: 63bc560920ad ("virtiofsd: print log only when priority is high enough)" Signed-off-by: Xiao Yang --- tools/virtiofsd/passthrough_ll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

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

2020-01-14 Thread Xiao Yang
need to send v2 patch? Thanks, Xiao Yang Dave ___ Virtio-fs mailing list Virtio-fs@redhat.com https://www.redhat.com/mailman/listinfo/virtio-fs

[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 --- tools

Re: [Virtio-fs] [PATCH] virtiofsd/passthrough_ll: Pass errno to fuse_reply_err()

2020-01-01 Thread Xiao Yang
On 2020/1/2 12:50, Eryu Guan wrote: On Thu, Jan 02, 2020 at 11:53:12AM +0800, Xiao Yang wrote: > lo_copy_file_range() passes -errno to fuse_reply_err() and then fuse_reply_err() > changes it to errno again, so that subsequent fuse_send_reply_iov_nofree() catches > the wrong e

[Virtio-fs] [PATCH] virtiofsd/passthrough_ll: Pass errno to fuse_reply_err()

2020-01-01 Thread Xiao Yang
by passing errno directly in lo_copy_file_range(). Signed-off-by: Xiao Yang --- tools/virtiofsd/passthrough_ll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c index 83dd0084b4..a77bed655e 100644 --- a/tools