]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdmaptool: fix --pool option for --test-map-object mode
authorIlya Dryomov <ilya.dryomov@inktank.com>
Thu, 13 Feb 2014 17:38:10 +0000 (19:38 +0200)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 14 Feb 2014 10:24:25 +0000 (12:24 +0200)
commiteedbf501e62f88a2777014a859cc70f7ac7cebdb
tree0439305c73bc55994b380be62aa65fb524d932fd
parentdd200c924e04d3db9fc26357ec3174043e9b5fe2
osdmaptool: fix --pool option for --test-map-object mode

Commit 7f1b12f2ef97 ("osdmaptool: add --test-map-pgs mode") broke
--pool for --test-map-object mode.  Fix it, and improve --pool option
handling for both modes while at it (report strict_strtol() errors,
check if specified pool exists).

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
src/tools/osdmaptool.cc