]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: snap_remove should ignore -ENOENT errors 4246/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 16 Mar 2015 22:40:49 +0000 (18:40 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 1 Apr 2015 19:54:51 +0000 (15:54 -0400)
commit57d2781da8ed6159397f0832935844c690033699
treebfc67735619703190b0f36f34f3a2a2bb3814ef7
parent572a2f5707f91f11c3ccaeca3ae88d8914d3dbc2
librbd: snap_remove should ignore -ENOENT errors

If the attempt to deregister the snapshot from the parent
image fails with -ENOENT, ignore the error as it is safe
to assume that the child is not associated with the parent.

Fixes: #11113
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit cf8094942ccdba831e03e5a79451cfa5d78a135f)
src/librbd/internal.cc