Revision 0f87c43e
b/lib/cli.py | ||
---|---|---|
50 | 50 |
"DISK_TEMPLATE_OPT", |
51 | 51 |
"FIELDS_OPT", |
52 | 52 |
"FILESTORE_DIR_OPT", |
53 |
"FILESTORE_DRIVER_OPT", |
|
53 | 54 |
"FORCE_OPT", |
54 | 55 |
"NOHDR_OPT", |
55 | 56 |
"NONICS_OPT", |
... | ... | |
493 | 494 |
" file storage dir to store file-based disks", |
494 | 495 |
default=None, metavar="<DIR>") |
495 | 496 |
|
497 |
FILESTORE_DRIVER_OPT = cli_option("--file-driver", dest="file_driver", |
|
498 |
help="Driver to use for image files", |
|
499 |
default="loop", metavar="<DRIVER>", |
|
500 |
choices=list(constants.FILE_DRIVER)) |
|
501 |
|
|
496 | 502 |
|
497 | 503 |
def _ParseArgs(argv, commands, aliases): |
498 | 504 |
"""Parser for the command line arguments. |
b/scripts/gnt-backup | ||
---|---|---|
246 | 246 |
" <NAME> iallocator plugin", default=None, type="string", |
247 | 247 |
completion_suggest=OPT_COMPL_ONE_IALLOCATOR), |
248 | 248 |
FILESTORE_DIR_OPT, |
249 |
cli_option("--file-driver", dest="file_driver", help="Driver to use" |
|
250 |
" for image files", default="loop", metavar="<DRIVER>", |
|
251 |
choices=list(constants.FILE_DRIVER)), |
|
249 |
FILESTORE_DRIVER_OPT, |
|
252 | 250 |
cli_option("-H", "--hypervisor", dest="hypervisor", |
253 | 251 |
help="Hypervisor and hypervisor options, in the format" |
254 | 252 |
" hypervisor:option=value,option=value,...", default=None, |
b/scripts/gnt-instance | ||
---|---|---|
1397 | 1397 |
action="store_false", help="Don't check that the instance's IP" |
1398 | 1398 |
" is alive (only valid with --no-start)"), |
1399 | 1399 |
FILESTORE_DIR_OPT, |
1400 |
cli_option("--file-driver", dest="file_driver", help="Driver to use" |
|
1401 |
" for image files", default="loop", metavar="<DRIVER>", |
|
1402 |
choices=list(constants.FILE_DRIVER)), |
|
1400 |
FILESTORE_DRIVER_OPT, |
|
1403 | 1401 |
cli_option("-I", "--iallocator", metavar="<NAME>", |
1404 | 1402 |
help="Select nodes for the instance automatically using the" |
1405 | 1403 |
" <NAME> iallocator plugin", default=None, type="string", |
Also available in: Unified diff