From: Prasanna Kumar Kalever Date: Wed, 2 Nov 2022 11:09:24 +0000 (+0530) Subject: rbd: add namespace to get_detach_arguments X-Git-Tag: v17.2.6~177^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c4b78ed6ca18f3d9ed40618ad208e43d73b026c3;p=ceph.git rbd: add namespace to get_detach_arguments Signed-off-by: Prasanna Kumar Kalever (cherry picked from commit 762c4e66c051a087f5c218e11aa5814ba74ef40d) --- diff --git a/src/test/cli/rbd/help.t b/src/test/cli/rbd/help.t index 35f781b371ac..ddb72186c77b 100644 --- a/src/test/cli/rbd/help.t +++ b/src/test/cli/rbd/help.t @@ -610,20 +610,21 @@ rbd help device detach usage: rbd device detach [--device-type ] [--pool ] - [--image ] [--snap ] - [--options ] + [--namespace ] [--image ] + [--snap ] [--options ] Detach image from device. Positional arguments image, snapshot, or device specification - [/][@] or - + [/[/]][@] or Optional arguments -t [ --device-type ] arg device type [ggate, krbd (default), nbd] -p [ --pool ] arg pool name + --namespace arg namespace name --image arg image name --snap arg snapshot name -o [ --options ] arg device specific options diff --git a/src/tools/rbd/action/Device.cc b/src/tools/rbd/action/Device.cc index 078f944cc6de..022abef9011e 100644 --- a/src/tools/rbd/action/Device.cc +++ b/src/tools/rbd/action/Device.cc @@ -236,8 +236,9 @@ void get_detach_arguments(po::options_description *positional, positional->add_options() ("image-or-snap-or-device-spec", "image, snapshot, or device specification\n" - "[/][@] or "); + "[/[/]][@] or "); at::add_pool_option(options, at::ARGUMENT_MODIFIER_NONE); + at::add_namespace_option(options, at::ARGUMENT_MODIFIER_NONE); at::add_image_option(options, at::ARGUMENT_MODIFIER_NONE); at::add_snap_option(options, at::ARGUMENT_MODIFIER_NONE); add_device_specific_options(options);