]> 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>
Wed, 20 Jul 2016 02:36:16 +0000 (10:36 +0800)
commit5c2ff04061cc686c8ece37cee3393365769d2bf1
tree25c9b577ae0719b891d63d764edfc93cb9524916
parent57b39f04087f3ba855248950723c949e3b7dcd7c
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>
(cherry picked from commit bc50e0309280c08c3ca79dfa5514ac3a15f81a23)
src/mds/CDir.cc
src/mds/CInode.cc
src/mds/CInode.h
src/mds/StrayManager.cc