]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-wnbd: consistently use negative error codes in rbd-wnbd
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 23 Mar 2023 08:24:01 +0000 (08:24 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 24 Mar 2023 12:34:04 +0000 (12:34 +0000)
commit0bc0d9f97fa6f57cd3322acadfe8c9e70167ab39
tree130508ca206e5c70a9a81ce10d6da0315ea83539
parentca17e360ea6b5767a07e732e0cedae4f6b46ac0f
rbd-wnbd: consistently use negative error codes in rbd-wnbd

The rbd-wnbd iterators return positive errors, which is why
in certain cases we may end up with both positive and negative
error codes.

This change ensures that we'll consistently use negative
error codes.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 98a7aff741eb95bcc98df625d6558d726711a5fb)
src/tools/rbd_wnbd/rbd_wnbd.cc