aboutsummaryrefslogtreecommitdiff
path: root/block/file-posix.c
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2019-05-24 09:58:47 +0200
committerMarkus Armbruster <armbru@redhat.com>2019-06-12 18:31:46 +0200
commitabea00533fa48de89f211bf2e0cff334765ed58e (patch)
tree77fffd21f717f2d13b45db3030fe92505109272e /block/file-posix.c
parent64c7580c2e85072685cb3f97b429191db92ced2b (diff)
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 <sgarzare@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190524075848.23781-3-sgarzare@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'block/file-posix.c')
-rw-r--r--block/file-posix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/block/file-posix.c b/block/file-posix.c
index 6e6bf3f4a5..83ab1b78ef 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 */ }
}