]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: handle partly purged directory
authorYan, Zheng <zyan@redhat.com>
Wed, 29 Jun 2016 09:15:01 +0000 (17:15 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 15 Jul 2016 01:11:49 +0000 (09:11 +0800)
commitbc50e0309280c08c3ca79dfa5514ac3a15f81a23
tree406ced2e6b121fc0910f6bc054fb40ce551675cc
parentdd98448d3d0bbb7d338f03f7ad1e40f217eebe0d
mds: handle partly purged directory

For a snapshoted direcotry whose snaprealm parents are being opened,
MDS does not know if the directory is purgeable. So MDS can't skip
committing dirfrags of the directory. But if the direcotry is purgeale,
some dirfrags could have already been deleted during MDS failover.
Committing them could return -ENOENT.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/CDir.cc
src/mds/CInode.cc
src/mds/CInode.h
src/mds/StrayManager.cc