All of lore.kernel.org
 help / color / mirror / Atom feed
* [Virtio-fs] [PATCH v2 1/2] virtiofsd: print more verbose information when bailing out
@ 2020-03-20 18:34 Liu Bo
  2020-03-20 18:34 ` [Virtio-fs] [PATCH v2 2/2] virtiofsd: fix mmap write under nondax mode Liu Bo
  2020-03-20 18:59 ` [Virtio-fs] [PATCH v2 1/2] virtiofsd: print more verbose information when bailing out Dr. David Alan Gilbert
  0 siblings, 2 replies; 6+ messages in thread
From: Liu Bo @ 2020-03-20 18:34 UTC (permalink / raw)
  To: virtio-fs

It'd be helpful to know what is the exact value of arg's offset, size
and flags.

Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
---
 tools/virtiofsd/fuse_lowlevel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowlevel.c
index a34a611..ca2056f 100644
--- a/tools/virtiofsd/fuse_lowlevel.c
+++ b/tools/virtiofsd/fuse_lowlevel.c
@@ -1224,8 +1224,8 @@ static void do_write_buf(fuse_req_t req, fuse_ino_t nodeid,
     }
 
     if (fuse_buf_size(pbufv) != arg->size) {
-        fuse_log(FUSE_LOG_ERR,
-                 "fuse: do_write_buf: buffer size doesn't match arg->size\n");
+        fuse_log(FUSE_LOG_ERR, "fuse: do_write_buf: buffer size %lu doesn't match arg->size %u offset %lu flags %u\n",
+                 fuse_buf_size(pbufv), arg->size, arg->offset, arg->write_flags);
         fuse_reply_err(req, EIO);
         return;
     }
-- 
1.8.3.1



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

end of thread, other threads:[~2020-03-24 20:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-20 18:34 [Virtio-fs] [PATCH v2 1/2] virtiofsd: print more verbose information when bailing out Liu Bo
2020-03-20 18:34 ` [Virtio-fs] [PATCH v2 2/2] virtiofsd: fix mmap write under nondax mode Liu Bo
2020-03-20 20:16   ` Dr. David Alan Gilbert
2020-03-20 22:33     ` Liu Bo
2020-03-24 20:09       ` Dr. David Alan Gilbert
2020-03-20 18:59 ` [Virtio-fs] [PATCH v2 1/2] virtiofsd: print more verbose information when bailing out Dr. David Alan Gilbert

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.