rados tool: remove -t param option for target pool

Bug #2772. This fixes an issue that was introduced when we
added the 'rados cp' command. The -t param was already used
for rados bench. With this change the only way to specify
a target pool is using --target-pool.
Though this problem is post argonaut, the 'rados cp' command
has been backported, so we need this fix there too.

Backport: argonaut

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
Yehuda Sadeh 2012-07-11 11:52:24 -07:00 committed by Sage Weil
parent 2c001b28fb
commit 173d592a4e

View File

@ -109,7 +109,6 @@ STR(DEFAULT_NUM_RADOS_WORKER_THREADS) ")\n"
" -p pool\n"
" --pool=pool\n"
" select given pool by name\n"
" -t pool\n"
" --target-pool=pool\n"
" select target pool by name\n"
" -b op_size\n"
@ -1746,7 +1745,7 @@ int main(int argc, const char **argv)
opts["show-time"] = "true";
} else if (ceph_argparse_witharg(args, i, &val, "-p", "--pool", (char*)NULL)) {
opts["pool"] = val;
} else if (ceph_argparse_witharg(args, i, &val, "-t", "--target-pool", (char*)NULL)) {
} else if (ceph_argparse_witharg(args, i, &val, "--target-pool", (char*)NULL)) {
opts["target_pool"] = val;
} else if (ceph_argparse_witharg(args, i, &val, "--object-locator" , (char *)NULL)) {
opts["object_locator"] = val;