]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
libcephfs: switch to CEPHFS_E* errors
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 12 Sep 2022 12:08:49 +0000 (12:08 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 10 Nov 2022 07:38:14 +0000 (09:38 +0200)
commit105e867640f605d3cfcb17067a6abc7b989569b3
tree8e166da0b94c61b5268319363b07eddbe61d8afd
parent197251e1d1f546fd3e7ec16a9f3ef621f064e313
libcephfs: switch to CEPHFS_E* errors

The cephfs client errors have been switched from errno values
(OS specific) to CEPHFS_E* errors (based on the Linux codes) [1][2].

The issue is that libcephfs still uses errno, which means that
non-Linux clients will get inconsistent errors.

This change updates libcephfs to use CEPHFS_E* errors and stay
consistent with the underlying client library.

[1] https://github.com/ceph/ceph/blob/6ef176b6745199224b62482a1241752826a5be14/src/libcephfs.cc#L203
[2] https://tracker.ceph.com/issues/48802

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/include/fs_types.h
src/libcephfs.cc