]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: don't remove an image that still has snapshots
authorJosh Durgin <josh.durgin@dreamhost.com>
Thu, 5 Jan 2012 01:05:49 +0000 (17:05 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Thu, 5 Jan 2012 01:46:18 +0000 (17:46 -0800)
commitbd2339102f0c650d87203fdc2336f9533a18b755
tree28779dc24ad9819cc69f21c2c092c78d171ca1f9
parent4728f4f8e09878c583c65cd882e031d37f8d903e
librbd: don't remove an image that still has snapshots

Return -EBUSY instead. After the header is removed, the snapshots
can't be removed or read, so make sure they're gone before proceeding.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/librbd.cc
src/pybind/rbd.py
src/test/pybind/test_rbd.py