From 6024088ca0c999524e944fbe435f29cf6baa7c07 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Sun, 9 Dec 2018 18:10:39 +0800 Subject: [PATCH] config: Add cache-related options for block devices Add block_device_cache_set, block_device_cache_direct and block_device_cache_noflush. Fixes: #997 Signed-off-by: Hui Zhu --- cli/config/configuration.toml.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cli/config/configuration.toml.in b/cli/config/configuration.toml.in index 4cba78c118..a8df6c58ea 100644 --- a/cli/config/configuration.toml.in +++ b/cli/config/configuration.toml.in @@ -95,6 +95,20 @@ disable_block_device_use = @DEFDISABLEBLOCK@ # virtio-blk. block_device_driver = "@DEFBLOCKSTORAGEDRIVER@" +# Specifies cache-related options will be set to block devices or not. +# Default false +#block_device_cache_set = true + +# Specifies cache-related options for block devices. +# Denotes whether use of O_DIRECT (bypass the host page cache) is enabled. +# Default false +#block_device_cache_direct = true + +# Specifies cache-related options for block devices. +# Denotes whether flush requests for the device are ignored. +# Default false +#block_device_cache_noflush = true + # Enable iothreads (data-plane) to be used. This causes IO to be # handled in a separate IO thread. This is currently only implemented # for SCSI.