]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add --shared_ceph_folder to shell cmd 43873/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Nov 2021 15:08:13 +0000 (16:08 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Nov 2021 15:08:13 +0000 (16:08 +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>
src/cephadm/cephadm

index b367b38eea480894f62e6181288a1a73116c7484..3b94f88823b95b76fb6568d2abf317dd50e1a477 100755 (executable)
@@ -7792,6 +7792,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')