Skip to contentSkip to conversation

virtiofsd: print more verbose information when bailing out

PATCH Superseded Liu Bo 1 participant 1 message Mar 19, 2020 Arm/actions semi architecture

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Liu Bo

author
#0 lore raw

PATCH 1/1 virtiofsd: print more verbose information when bailing out

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

---
 contrib/virtiofsd/fuse_lowlevel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
contrib/virtiofsd/fuse_lowlevel.c +2 -1
index f7eb12c..7375bae 100644
@@ -1226,7 +1226,8 @@ static void do_write_buf(fuse_req_t req, fuse_ino_t nodeid,
         }
 
 	if (fuse_buf_size(pbufv) != arg->size) {
-		fuse_err("fuse: do_write_buf: buffer size doesn't match arg->size\n");
+		fuse_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;
 	}
Signature · 1 line
1.8.3.1