]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: unprotect any non-unprotected snapshot
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 12 Feb 2013 01:08:55 +0000 (17:08 -0800)
committerSage Weil <sage@inktank.com>
Wed, 13 Feb 2013 05:44:20 +0000 (21:44 -0800)
commitf21543f0d88f7bacb69cef3712b0ce087f386e93
tree4564e22b8e3c3f9a03ebce8d4e1426cdb5dd9e15
parent65969f8fbef02ee39f6c2365fffbcd3f633f4b37
librbd: unprotect any non-unprotected snapshot

Include snapshots in the UNPROTECTING state as well, which can occur
after an unprotect is interrupted.

Fixes: #4100
Backport: bobtail
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit fe283813b44a7c45def6768ea0788a3a0635957e)
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/internal.cc