]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: gracefully handle deleted/renamed pools 3439/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 19 Jan 2015 15:28:56 +0000 (10:28 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 21 Jan 2015 22:23:28 +0000 (17:23 -0500)
commite1c38bd5557ceb1411f9aa142deda28b459965e1
tree0dfc2dc87e0f0e279e175ca47c93a467343d42a1
parent4e1d00ca66aaa5a87d3865e91877713644c6d56b
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, #10122
Backport: giant, firefly
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 436923c68b77c900b7774fbef918c0d6e1614a36)
src/librbd/internal.cc