]> 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)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 13 Feb 2013 00:43:36 +0000 (16:43 -0800)
commitfe283813b44a7c45def6768ea0788a3a0635957e
tree8885c7e8aa9d9c491d6b52f6673a0d253603bee7
parent78ff229afae8eecd69bfab40e20925b00888894a
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>
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/internal.cc