]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: deprecate --no-settle option 1701/head
authorIlya Dryomov <ilya.dryomov@inktank.com>
Wed, 23 Apr 2014 08:57:12 +0000 (12:57 +0400)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Wed, 23 Apr 2014 09:33:43 +0000 (13:33 +0400)
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 <ilya.dryomov@inktank.com>
src/rbd.cc
src/test/cli/rbd/help.t

index 9c31725b511317ac008080912d592f5fc5452e56..ccbc5319eeb57f9b66badf9dacb6a78751e24474 100644 (file)
@@ -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 <tag>                     take a shared (rather than exclusive) lock\n"
 "  --format <output-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 <map-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)) {
index 5723bef8417b95c458feeb387de70db924cd24c6..3818ee3cac26d3bf101d62249204bb94d97a9906 100644 (file)
@@ -74,7 +74,6 @@
     --shared <tag>                     take a shared (rather than exclusive) lock
     --format <output-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 <map-options>        options to use when mapping an image
     --read-only                        set device readonly when mapping image