]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fsck: check for extents spanning shards
authorSage Weil <sage@redhat.com>
Tue, 1 Nov 2016 16:34:59 +0000 (12:34 -0400)
committerSage Weil <sage@redhat.com>
Tue, 1 Nov 2016 17:46:06 +0000 (13:46 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc

index 451e4bd06bee567000767e221d0ac7d2812f99c1..53e269696cef4d2282b0e99364a3eb4c61936a13 100644 (file)
@@ -4377,7 +4377,14 @@ int BlueStore::fsck(bool deep)
        if (l.logical_offset < pos) {
          derr << __func__ << " " << oid << " lextent at 0x"
               << std::hex << l.logical_offset
-              << "overlaps with the previous, which ends at 0x" << pos
+              << " overlaps with the previous, which ends at 0x" << pos
+              << std::dec << dendl;
+         ++errors;
+       }
+       if (o->extent_map.spans_shard(l.logical_offset, l.length)) {
+         derr << __func__ << " " << oid << " lextent at 0x"
+              << std::hex << l.logical_offset << "~" << l.length
+              << " spans a shard boundary"
               << std::dec << dendl;
          ++errors;
        }