[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 04/11] block/gluster: update .help of BLOCK_OPT_PREAL
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PULL 04/11] block/gluster: update .help of BLOCK_OPT_PREALLOC option |
Date: |
Wed, 12 Jun 2019 18:52:22 +0200 |
From: Stefano Garzarella <address@hidden>
Add missing 'falloc' among the allowed values of 'preallocation'
option; show it and 'full' only when they are supported.
('falloc' is supported if defined CONFIG_GLUSTERFS_FALLOCATE,
'full' is supported if defined CONFIG_GLUSTERFS_ZEROFILL)
Signed-off-by: Stefano Garzarella <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Markus Armbruster <address@hidden>
---
block/gluster.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/block/gluster.c b/block/gluster.c
index dc16f0c329..62f8ff2147 100644
--- a/block/gluster.c
+++ b/block/gluster.c
@@ -98,7 +98,14 @@ static QemuOptsList qemu_gluster_create_opts = {
{
.name = BLOCK_OPT_PREALLOC,
.type = QEMU_OPT_STRING,
- .help = "Preallocation mode (allowed values: off, full)"
+ .help = "Preallocation mode (allowed values: off"
+#ifdef CONFIG_GLUSTERFS_FALLOCATE
+ ", falloc"
+#endif
+#ifdef CONFIG_GLUSTERFS_ZEROFILL
+ ", full"
+#endif
+ ")"
},
{
.name = GLUSTER_OPT_DEBUG,
--
2.21.0
- [Qemu-devel] [PULL 00/11] QAPI patches for 2019-06-12, Markus Armbruster, 2019/06/12
- [Qemu-devel] [PULL 01/11] qdev: Delete unused LostTickPolicy "merge", Markus Armbruster, 2019/06/12
- [Qemu-devel] [PULL 02/11] qapi/block-core: update documentation of preallocation parameter, Markus Armbruster, 2019/06/12
- [Qemu-devel] [PULL 08/11] qapi: Disentangle QAPIDoc code, Markus Armbruster, 2019/06/12
- [Qemu-devel] [PULL 06/11] tests/qapi-schema: Test for good feature lists in structs, Markus Armbruster, 2019/06/12
- [Qemu-devel] [PULL 04/11] block/gluster: update .help of BLOCK_OPT_PREALLOC option,
Markus Armbruster <=
- [Qemu-devel] [PULL 10/11] file-posix: Add dynamic-auto-read-only QAPI feature, Markus Armbruster, 2019/06/12
- [Qemu-devel] [PULL 11/11] qapi: Simplify how QAPIDoc implements its state machine, Markus Armbruster, 2019/06/12
- [Qemu-devel] [PULL 07/11] tests/qapi-schema: Error case tests for features in structs, Markus Armbruster, 2019/06/12
- [Qemu-devel] [PULL 09/11] qapi: Allow documentation for features, Markus Armbruster, 2019/06/12
- [Qemu-devel] [PULL 03/11] block/file-posix: update .help of BLOCK_OPT_PREALLOC option, Markus Armbruster, 2019/06/12
- [Qemu-devel] [PULL 05/11] qapi: Add feature flags to struct types, Markus Armbruster, 2019/06/12
- Re: [Qemu-devel] [PULL 00/11] QAPI patches for 2019-06-12, Peter Maydell, 2019/06/13