]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: add debug output for ll_read result
authorYan, Zheng <zyan@redhat.com>
Fri, 22 Nov 2019 03:10:23 +0000 (11:10 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 30 Mar 2020 02:24:47 +0000 (10:24 +0800)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/client/Client.cc

index 32b23dde28372aab20442648d3e471224acb4f73..edf8964909d02fafc3c49b07958ea0c8410adcae 100644 (file)
@@ -13294,7 +13294,10 @@ int Client::ll_read(Fh *fh, loff_t off, loff_t len, bufferlist *bl)
 
   /* We can't return bytes written larger than INT_MAX, clamp len to that */
   len = std::min(len, (loff_t)INT_MAX);
-  return _read(fh, off, len, bl);
+  int r = _read(fh, off, len, bl);
+  ldout(cct, 3) << "ll_read " << fh << " " << off << "~" << len << " = " << r
+               << dendl;
+  return r;
 }
 
 int Client::ll_read_block(Inode *in, uint64_t blockid,