]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: Add an argument-check for nbds_max in rbd-nbd 7337/head
authorKongming <wu.kongming@h3c.com>
Sat, 23 Jan 2016 14:37:25 +0000 (22:37 +0800)
committerKongming Wu <wu.kongming@h3c.com>
Wed, 27 Jan 2016 01:37:23 +0000 (09:37 +0800)
commit39e7fcdb8c11f259ec8a5541144a34fd3fcf74f4
treece479875a13dfc55382677ac4c2f6f799a89aa15
parenteea2689b9e9ec722df0a0121555e93b44d2617a4
rbd: Add an argument-check for nbds_max in rbd-nbd

Fixes: #14482
This modification adds several checks to the argument of nbds_max in the module of rbd-nbd. The value of nbds_max is strictly limited to non-negative integer now.

Signed-off-by: Kongming Wu <wu.kongming@h3c.com>
src/tools/rbd_nbd/rbd-nbd.cc