mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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>
This commit is contained in:
committed by
Markus Armbruster
parent
64c7580c2e
commit
abea00533f
+5
-1
@@ -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 */ }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user