]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: verify we can read objects on deep fsck 11724/head
authorSage Weil <sage@redhat.com>
Tue, 1 Nov 2016 15:11:07 +0000 (11:11 -0400)
committerSage Weil <sage@redhat.com>
Tue, 1 Nov 2016 16:20:51 +0000 (12:20 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc

index 53f3047b02af905ac83831fc289c220cb11fe8f4..451e4bd06bee567000767e221d0ac7d2812f99c1 100644 (file)
@@ -4426,6 +4426,15 @@ int BlueStore::fsck(bool deep)
                                        deep);
         }
       }
+      if (deep) {
+       bufferlist bl;
+       int r = _do_read(c.get(), o, 0, o->onode.size, bl, 0);
+       if (r < 0) {
+         ++errors;
+         derr << __func__ << " " << oid << " error during read: "
+              << cpp_strerror(r) << dendl;
+       }
+      }
       // omap
       while (o->onode.omap_head) {
        if (used_omap_head.count(o->onode.omap_head)) {