mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-18 04:10:22 +00:00
1e5370a1f3
In some ceph version if the subvolume is not present, the ceph returns doesnot exists and in some version not found error message. This commit fixes issue for both error checks. By only checking Error ENOENT: for doesnot exist seems good. even if some error message changes in ceph ceph-csi wont get any issue. ```bash sh-4.2# ceph version ceph version 14.2.10 (b340acf629a010a74d90da5782a2c5fe0b54ac20) nautilus (stable) sh-4.2# ceph fs subvolume getpath myfs csi-vol-a24a3d97-c7f4-11ea-8cfc-0242ac110012 --group_name csi Error ENOENT: subvolume 'csi-vol-a24a3d97-c7f4-11ea-8cfc-0242ac110012' does not exist ``` ```bash sh-4.2# ceph version ceph version 14.2.4 (75f4de193b3ea58512f204623e6c5a16e6c1e1ba) nautilus (stable) sh-4.2# ceph fs subvolume getpath myfs testing --group_name=csi Error ENOENT: Subvolume 'testing' not found ``` Signed-off-by: Madhu Rajanna <madhupr007@gmail.com> |
||
---|---|---|
.. | ||
cephfs_util.go | ||
controllerserver.go | ||
driver.go | ||
errors.go | ||
fsjournal.go | ||
identityserver.go | ||
nodeserver.go | ||
util.go | ||
volume.go | ||
volumemounter.go | ||
volumeoptions.go |