]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: fix error purging non-user snapshots
authorsongweibin <song.weibin@zte.com.cn>
Sat, 18 Aug 2018 00:50:24 +0000 (08:50 +0800)
committerJason Dillaman <dillaman@redhat.com>
Wed, 15 May 2019 23:54:50 +0000 (19:54 -0400)
commitce3d71bbb228918f51c08811fdabc4350d83f907
tree27139fd747375694a4c428462d5085961cece05b
parent4be192e4d20d3823780eb5b257f8da1b5af64f77
rbd: fix error purging non-user snapshots

Fixes:
  [root@ ~]# rbd snap rm img1@snap1
  [root@ ~]# rbd snap ls img1 -a
  SNAPID NAME                                 SIZE    TIMESTAMP                NAMESPACE
       4 f2e82bd1-e2ff-4a6b-aaef-5a12a2b23a30 100 MiB Sat Aug 18 08:48:34 2018 trash (snap1)
  [root@ ~]# rbd snap purge img1
  Removing all snapshots: 0% complete...failed.
  rbd: removing snaps failed: (2) No such file or directory

Signed-off-by: songweibin <song.weibin@zte.com.cn>
(cherry picked from commit 2c79a4939090d445a8172dbbe4d4072a4851ddcf)
src/tools/rbd/action/Snap.cc