]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/cephfs: make 'cephfs-data-scan scan_links' fix dentry's first 31680/head
authorYan, Zheng <zyan@redhat.com>
Fri, 15 Nov 2019 15:59:44 +0000 (23:59 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 15 Nov 2019 17:11:05 +0000 (01:11 +0800)
commit16fc2c392b0a4de13dbe4dfcc7dad01d8e58ce40
treeaa364b13083982d237f07d56b389dafd305c2c5a
parent7ffb5d9e79207da81af933f4e95655e16558c739
tools/cephfs: make 'cephfs-data-scan scan_links' fix dentry's first

Dentries injected by 'cephfs-data-scan foo' have 'first == CEPH_NOSNAP'.
This confuses mimic and later version MDS, and can cause them to crash.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: https://tracker.ceph.com/issues/42829
src/tools/cephfs/DataScan.cc
src/tools/cephfs/DataScan.h