]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add --shared_ceph_folder to shell cmd
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Nov 2021 15:08:13 +0000 (16:08 +0100)
committerSebastian Wagner <sewagner@redhat.com>
Mon, 3 Jan 2022 13:59:54 +0000 (14:59 +0100)
It can be useful to share ceph src when running the `cephadm shell`
command in order to do quick tests.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 37ea06cfd0937df6230383d16de9fbda9a5a6f3f)

src/cephadm/cephadm

index 83ff82c0b300b849e1331d2be0fc347b8c943db1..910cc765cd4bdc09158c76f15540a6d98b3b4c44 100755 (executable)
@@ -8020,6 +8020,10 @@ def _get_parser():
     parser_shell = subparsers.add_parser(
         'shell', help='run an interactive shell inside a daemon container')
     parser_shell.set_defaults(func=command_shell)
+    parser_shell.add_argument(
+        '--shared_ceph_folder',
+        metavar='CEPH_SOURCE_FOLDER',
+        help='Development mode. Several folders in containers are volumes mapped to different sub-folders in the ceph source folder')
     parser_shell.add_argument(
         '--fsid',
         help='cluster FSID')