]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-nbd: polish the doc and help information. 14146/head
authorPan Liu <liupan1111@gmail.com>
Sun, 26 Mar 2017 06:12:28 +0000 (14:12 +0800)
committerPan Liu <liupan1111@gmail.com>
Sun, 26 Mar 2017 06:12:28 +0000 (14:12 +0800)
Signed-off-by: Pan Liu <liupan1111@gmail.com>
doc/man/8/rbd-nbd.rst
src/test/cli/rbd/help.t
src/tools/rbd/action/Nbd.cc
src/tools/rbd_nbd/rbd-nbd.cc

index 659a3a6cbde11988cba12b95bc14972494c2625d..bb20a4d1ebca8fdca15bf1ae4abafef5dbedb5e1 100644 (file)
@@ -30,7 +30,7 @@ Options
 
 .. option:: --read-only
 
-   Map readonly.
+   Map read-only.
 
 .. option:: --nbds_max *limit*
 
@@ -43,7 +43,7 @@ Options
 
 .. option:: --exclusive
 
-   Forbid other clients write.
+   Forbid writes by other clients.
 
 Image and snap specs
 ====================
index b2a44296f82f0b8b50100bf60421a15873e0e508..0f5ed40a2904caf779a152a9f57b2f5788a1e716 100644 (file)
     -p [ --pool ] arg     pool name
     --image arg           image name
     --snap arg            snapshot name
-    --read-only           mount read-only
-    --exclusive           forbid other clients write
+    --read-only           map read-only
+    --exclusive           forbid writes by other clients
     --device arg          specify nbd device
     --nbds_max arg        override module param nbds_max
     --max_part arg        override module param max_part
index ab8db1f6f92177b48340a9d11a36052e45fcdc5f..d612fef1930ced4e6c0c3e5671d82f338fa434b1 100644 (file)
@@ -99,8 +99,8 @@ void get_map_arguments(po::options_description *positional,
   at::add_image_or_snap_spec_options(positional, options,
                                      at::ARGUMENT_MODIFIER_NONE);
   options->add_options()
-    ("read-only", po::bool_switch(), "mount read-only")
-    ("exclusive", po::bool_switch(), "forbid other clients write")
+    ("read-only", po::bool_switch(), "map read-only")
+    ("exclusive", po::bool_switch(), "forbid writes by other clients")
     ("device", po::value<std::string>(), "specify nbd device")
     ("nbds_max", po::value<std::string>(), "override module param nbds_max")
     ("max_part", po::value<std::string>(), "override module param max_part");
index ebb143f69fee56409b024413c4dcec8127f8b0de..42e81f7cd728fd5eb45c133c420bda4666a0599e 100644 (file)
@@ -64,10 +64,10 @@ static void usage()
             << "               list-mapped                         List mapped nbd devices\n"
             << "Options:\n"
             << "  --device <device path>  Specify nbd device path\n"
-            << "  --read-only             Map readonly\n"
+            << "  --read-only             Map read-only\n"
             << "  --nbds_max <limit>      Override for module param nbds_max\n"
             << "  --max_part <limit>      Override for module param max_part\n"
-            << "  --exclusive             Forbid other clients write\n"
+            << "  --exclusive             Forbid writes by other clients\n"
             << std::endl;
   generic_server_usage();
 }