]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: fix `subvolume group rm` error message
authorneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Mon, 25 Sep 2023 11:02:31 +0000 (16:32 +0530)
committerneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Thu, 26 Oct 2023 08:50:33 +0000 (14:20 +0530)
commit19221d17a7d8256f449d00d30f2d165d4c268ece
tree519f23c30b51a05d8102fb315e27c8b71481fd83
parent583408857e5d6da3d29992dea1b6a77cbbc9bc3a
mgr/volumes: fix `subvolume group rm` error message

Currently, if we try to delete subvolumegroup using `fs subvolumegroup rm`
when there's one or more subvolume(s) present under that subvolumegroup we
see the error something like :
`Error ENOTEMPTY: error in rmdir /volumes/group1`
which causes confusion. Make it more descriptive

Fixes: https://tracker.ceph.com/issues/62968
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit fca554cee093771646a0c4a37827d7fe3fe95a4a)
src/pybind/mgr/volumes/fs/operations/group.py