diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-06-04 15:39:38 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-06-06 18:38:57 +0300 |
commit | db08adf526ce78eea7ae5f24e30b8caa1af4cf24 (patch) | |
tree | c52baf3aed5286724a6114327f2532bad99ef4bb /block/cow.c | |
parent | f425c278724fc477735a0eecd2e2b03e53fd1a62 (diff) |
qemu-img: Print available options with -o ?
This patch adds a small help text to each of the options in the block drivers
which can be displayed by using qemu-img create -f fmt -o ?
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/cow.c')
-rw-r--r-- | block/cow.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/block/cow.c b/block/cow.c index 41d292aac2..84818f1034 100644 --- a/block/cow.c +++ b/block/cow.c @@ -262,8 +262,16 @@ static void cow_flush(BlockDriverState *bs) } static QEMUOptionParameter cow_create_options[] = { - { BLOCK_OPT_SIZE, OPT_SIZE }, - { BLOCK_OPT_BACKING_FILE, OPT_STRING }, + { + .name = BLOCK_OPT_SIZE, + .type = OPT_SIZE, + .help = "Virtual disk size" + }, + { + .name = BLOCK_OPT_BACKING_FILE, + .type = OPT_STRING, + .help = "File name of a base image" + }, { NULL } }; |