]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-nbd: sscanf return 0 mean not-match. 29315/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Fri, 19 Apr 2019 05:00:04 +0000 (13:00 +0800)
committerPrashant D <pdhange@redhat.com>
Thu, 25 Jul 2019 01:57:23 +0000 (21:57 -0400)
commit0d1523c7ad39bc596ef87a7e53ff34791e385ce8
tree415d457fbbada02ba56e5d5b159f35579e1938cf
parent85fa207048f84d9c6125070861de8ae3d02b3c7b
rbd-nbd: sscanf return 0 mean not-match.

When exec:  rbd-nbd map rbd/image --device /dev/image
The error message is:
rbd-nbd: failed to open device: /dev/image.

In fact, it should print:
rbd-nbd: invalid device path: /dev/image (expected /dev/nbd{num})

Meantime change help which make more understand.

Fixes: http://tracker.ceph.com/issues/39269
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit 5b5c21be7138dc29f190887061f3a1de457a2e24)
src/tools/rbd_nbd/rbd-nbd.cc