]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: add debug output for ll_read result 35962/head
authorYan, Zheng <zyan@redhat.com>
Fri, 22 Nov 2019 03:10:23 +0000 (11:10 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 7 Jul 2020 15:26:09 +0000 (17:26 +0200)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 30dd9d2834b561ab7b0b4785e8e45094098725ae)

src/client/Client.cc

index ae6385c47c94b1c1e20f5e14f379e6a3ef52927a..5df9abbc150215af72e136743532d23e85ea8536 100644 (file)
@@ -13384,7 +13384,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,