]> 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>
Wed, 11 Oct 2023 07:40:51 +0000 (13:10 +0530)
commitfca554cee093771646a0c4a37827d7fe3fe95a4a
tree950f589ac34b29962f05d57e7b2b6f8f7aa36e89
parent98a10dc0e7be7909845c7087404a99ef8a52d670
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>
src/pybind/mgr/volumes/fs/operations/group.py