]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: update "rbd-wnbd show" error handling
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 19 Nov 2020 14:45:52 +0000 (14:45 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 20 Nov 2020 12:42:18 +0000 (12:42 +0000)
commitbfb0dbf0064888b4f949781b866de9d5923c426b
tree267c4b8942a665071d0cdf36aa34fd7b0bed1a27
parent178ac34c7c0047852a2ba44e5e7affd18265b67d
rbd: update "rbd-wnbd show" error handling

We'll update the "rbd-wnbd show" command to return -ENOENT
when the specified mapping doesn't exist, instead of returning
-EINVAL. At the moment, it's impossible to tell if the operation
failed because of an error or the mapping simply doesn't exist.

Worth mentioning that on Windows, we can use 32b for the exit code,
which is a bit more flexible.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/tools/rbd_wnbd/rbd_wnbd.cc