From: Dongsheng Yang Date: Fri, 13 May 2016 08:56:39 +0000 (-0400) Subject: tools/rbd: make bench-write invisible to user X-Git-Tag: v11.0.0~90^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1dd542d8ce0f961ea816f261f07cd66912ebba64;p=ceph.git tools/rbd: make bench-write invisible to user rbd bench-write is going to be deprecated. This patch makes it invisible in help message and manpage. But it is still working. Signed-off-by: Dongsheng Yang --- diff --git a/doc/man/8/rbd.rst b/doc/man/8/rbd.rst index 42ef2c850373e..c9136f699dabc 100644 --- a/doc/man/8/rbd.rst +++ b/doc/man/8/rbd.rst @@ -369,11 +369,6 @@ Commands Release a lock on an image. The lock id and locker are as output by lock ls. -:command:`bench-write` [--io-size *size-in-B/K/M/G/T*] [--io-threads *num-ios-in-flight*] [--io-total *total-size-to-write-in-B/K/M/G/T*] [--io-pattern seq | rand] *image-spec* - Generate a series of writes to the image and measure the write throughput and - latency. Defaults are: --io-size 4096, --io-threads 16, --io-total 1G, - --io-pattern seq. - Image and snap specs ==================== diff --git a/src/tools/rbd/action/BenchWrite.cc b/src/tools/rbd/action/BenchWrite.cc index c124f30423cad..6691a28974a74 100644 --- a/src/tools/rbd/action/BenchWrite.cc +++ b/src/tools/rbd/action/BenchWrite.cc @@ -303,7 +303,7 @@ int execute(const po::variables_map &vm) { } Shell::Action action( - {"bench-write"}, {}, "Simple write benchmark.", "", &get_arguments, &execute); + {"bench-write"}, {}, "Simple write benchmark.", "", &get_arguments, &execute, false); } // namespace bench_write } // namespace action