]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: add polling period option
authorMohamad Gebai <mgebai@suse.com>
Thu, 1 Mar 2018 19:49:42 +0000 (14:49 -0500)
committerMohamad Gebai <mgebai@suse.com>
Thu, 12 Apr 2018 04:26:24 +0000 (00:26 -0400)
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
src/ceph.in

index edea696e7c49aa94db5c83d2e391baf0588b7448..29efdde3b65ae69a8c5cf3efcc0724cf648e146d 100755 (executable)
@@ -319,6 +319,9 @@ def parse_cmdargs(args=None, target=''):
 
     parser.add_argument('--block', action='store_true',
                         help='block until completion (scrub and deep-scrub only)')
+    parser.add_argument('--period', '-p', default=1, type=float,
+                        help='polling period, default 1.0 second (for ' \
+                        'polling commands only)')
 
     # returns a Namespace with the parsed args, and a list of all extras
     parsed_args, extras = parser.parse_known_args(args)