From: Ilya Dryomov Date: Wed, 23 Apr 2014 08:57:12 +0000 (+0400) Subject: rbd: deprecate --no-settle option X-Git-Tag: v0.81~104^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1701%2Fhead;p=ceph.git rbd: deprecate --no-settle option Waiting for udev has been the default for a while now, and, after switching to libkrbd, is no longer an option. (libkrbd waits for specific devices to show up, the old behaviour was to wait for everything udev.) Signed-off-by: Ilya Dryomov --- diff --git a/src/rbd.cc b/src/rbd.cc index 9c31725b5113..ccbc5319eeb5 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -62,7 +62,6 @@ static string dir_oid = RBD_DIRECTORY; static string dir_info_oid = RBD_INFO; -bool udevadm_settle = true; bool progress = true; bool resize_allow_shrink = false; @@ -148,7 +147,6 @@ void usage() " --shared take a shared (rather than exclusive) lock\n" " --format output format (default: plain, json, xml)\n" " --pretty-format make json or xml output more readable\n" -" --no-settle do not wait for udevadm to settle on map/unmap\n" " --no-progress do not show progress for long-running commands\n" " -o, --options options to use when mapping an image\n" " --read-only set device readonly when mapping image\n" @@ -2053,7 +2051,7 @@ int main(int argc, const char **argv) } else if (ceph_argparse_witharg(args, i, &val, "--shared", (char *)NULL)) { lock_tag = strdup(val.c_str()); } else if (ceph_argparse_flag(args, i, "--no-settle", (char *)NULL)) { - udevadm_settle = false; + cerr << "rbd: --no-settle is deprecated" << std::endl; } else if (ceph_argparse_witharg(args, i, &val, "-o", "--options", (char*)NULL)) { char *map_options = strdup(val.c_str()); if (parse_map_options(map_options)) { diff --git a/src/test/cli/rbd/help.t b/src/test/cli/rbd/help.t index 5723bef8417b..3818ee3cac26 100644 --- a/src/test/cli/rbd/help.t +++ b/src/test/cli/rbd/help.t @@ -74,7 +74,6 @@ --shared take a shared (rather than exclusive) lock --format output format (default: plain, json, xml) --pretty-format make json or xml output more readable - --no-settle do not wait for udevadm to settle on map/unmap --no-progress do not show progress for long-running commands -o, --options options to use when mapping an image --read-only set device readonly when mapping image