]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: gracefully handle deleted/renamed pools 3404/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 19 Jan 2015 15:28:56 +0000 (10:28 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 19 Jan 2015 15:30:50 +0000 (10:30 -0500)
commitc23e42e78ea3ba44706951a728e2ccb74cac7b33
tree2b67059d4a8ac228abeb32d311534b8879244da1
parent24c13d87039d4f61df0bcabdb8862e0e94fe575d
librbd: gracefully handle deleted/renamed pools

snap_unprotect and list_children both attempt to scan all
pools. If a pool is deleted or renamed during the scan,
the methods would previously return -ENOENT. Both methods
have been modified to more gracefully handle this condition.

Fixes: #10270
Backport: giant, firefly
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 436923c68b77c900b7774fbef918c0d6e1614a36)
src/librbd/internal.cc