]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
messages: avoid converting ceph errors on Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 12 Sep 2022 14:13:38 +0000 (14:13 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 10 Nov 2022 07:38:14 +0000 (09:38 +0200)
commitc381c299e1975caa6da747ce0b99d7a7b91baac0
tree03e2f7bc77fc1807ccc7ed5490c6e93f0fa59dc2
parentad0094fa04dbcb70ed1979ad980baa7ec96c4611
messages: avoid converting ceph errors on Windows

libclient and libcephfs return CEPHFS_E* errors, which are basically
Linux errno codes. If we convert mds errors to host errno values, we
end up mixing error codes.

For Windows, we'll preserve the original error value, which is expected
to be a Linux (CEPHFS_E*) error.

It may be worth doing the same for other platforms eventually.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/messages/MClientReply.h