From: Sage Weil Date: Tue, 1 Nov 2016 16:34:59 +0000 (-0400) Subject: os/bluestore: fsck: check for extents spanning shards X-Git-Tag: v11.1.0~445^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=be22364959900379c1736ca3e9cabf9346247d57;p=ceph.git os/bluestore: fsck: check for extents spanning shards Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 451e4bd06bee..53e269696cef 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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; }