[Virtio-fs] [PATCH v2 1/2] virtiofsd: print more verbose information when bailing out
Liu Bo
bo.liu at linux.alibaba.com
Fri Mar 20 18:34:13 UTC 2020
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 at 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
More information about the Virtio-fs
mailing list