From: Stefano Garzarella Date: Fri, 24 May 2019 07:58:47 +0000 (+0200) Subject: block/file-posix: update .help of BLOCK_OPT_PREALLOC option X-Git-Tag: v4.1.0-rc0~58^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=abea00533fa48de89f211bf2e0cff334765ed58e;p=thirdparty%2Fqemu.git block/file-posix: update .help of BLOCK_OPT_PREALLOC option Show 'falloc' among the allowed values of 'preallocation' option, only when it is supported (if defined CONFIG_POSIX_FALLOCATE) Signed-off-by: Stefano Garzarella Reviewed-by: Markus Armbruster Message-Id: <20190524075848.23781-3-sgarzare@redhat.com> Signed-off-by: Markus Armbruster --- diff --git a/block/file-posix.c b/block/file-posix.c index 6e6bf3f4a57..83ab1b78efa 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -2752,7 +2752,11 @@ static QemuOptsList raw_create_opts = { { .name = BLOCK_OPT_PREALLOC, .type = QEMU_OPT_STRING, - .help = "Preallocation mode (allowed values: off, falloc, full)" + .help = "Preallocation mode (allowed values: off" +#ifdef CONFIG_POSIX_FALLOCATE + ", falloc" +#endif + ", full)" }, { /* end of list */ } }