ceph-csi/internal/cephfs
Madhu Rajanna 1e5370a1f3 cephfs: return volume not found error if volume doesnot exists
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>
2020-07-17 10:27:18 +00:00
..
cephfs_util.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
controllerserver.go cleanup: Remove support for Delete and Unmounting v1.1.0 PVC 2020-07-10 16:07:13 +00:00
driver.go cleanup: Remove support for Delete and Unmounting v1.1.0 PVC 2020-07-10 16:07:13 +00:00
errors.go cephfs: add Unwrap() to error types 2020-07-03 09:12:48 +00:00
fsjournal.go cleanup: Avoid usage of numbers 2020-07-10 07:41:23 +00:00
identityserver.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
nodeserver.go cleanup: rename newVolumeOptionsFromVersion1Context for more clarity 2020-07-13 04:04:28 +00:00
util.go cleanup: Remove support for Delete and Unmounting v1.1.0 PVC 2020-07-10 16:07:13 +00:00
volume.go cephfs: return volume not found error if volume doesnot exists 2020-07-17 10:27:18 +00:00
volumemounter.go cleanup: Avoid usage of numbers 2020-07-10 07:41:23 +00:00
volumeoptions.go cleanup: rename newVolumeOptionsFromVersion1Context for more clarity 2020-07-13 04:04:28 +00:00