]> 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 09:00:21 +0000 (09:00 +0000)
commit98a7aff741eb95bcc98df625d6558d726711a5fb
treecb75b8f187b095258f2d355c67f08cc6f9a73587
parent3d8afc00215146fbc0226c2c6ccc7cb5dd3a2bb5
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>
src/tools/rbd_wnbd/rbd_wnbd.cc