]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: don't attempt to remove image state on orphan snapshots
authorIlya Dryomov <idryomov@gmail.com>
Tue, 22 Aug 2023 15:27:50 +0000 (17:27 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 1 Sep 2023 17:05:36 +0000 (19:05 +0200)
commitcfae3f79bd0513e2753b0deb8c2624ab07cf2d1b
tree35869079beceb3cc5bcb9a73059c3ddd7e25a92c
parent4a6f6ed0f371b0841d629fd94ce50e5107bc5491
librbd: don't attempt to remove image state on orphan snapshots

Despite being mirror snapshots, orphan snapshots don't have image
state: see CreateNonPrimaryRequest::write_image_state() for a similar
is_orphan() check.  Attempting to remove image state generates bogus
"failed to read image state object" and "failed to remove image state"
errors.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/operation/SnapshotRemoveRequest.cc
src/test/librbd/operation/test_mock_SnapshotRemoveRequest.cc