]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
bluestore: Fix handling the return value of zbc_device_is_zoned() call. 35907/head
authorAbutalib Aghayev <agayev@cs.cmu.edu>
Fri, 3 Jul 2020 02:16:35 +0000 (22:16 -0400)
committerAbutalib Aghayev <agayev@cs.cmu.edu>
Fri, 3 Jul 2020 02:16:35 +0000 (22:16 -0400)
commit4bca2ccf92cd9ea432471fe7a3c2115c08afe5d1
treeeead545bd1d8464cbae03c130ce5dee24307a6f9
parentef71436babea61530e8e25568e16fcda21f90fd8
bluestore: Fix handling the return value of zbc_device_is_zoned() call.

zbc_device_is_zoned() returns 1 when the device is zoned and 0 when the device
is not zoned.  It may return a negative value in case of error, for example,
if the user does not have access to the device.

Signed-off-by: Abutalib Aghayev <agayev@cs.cmu.edu>
src/blk/BlockDevice.cc