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 <teawater@hyper.sh>
This commit is contained in:
Hui Zhu 2018-12-09 18:10:39 +08:00
parent 408428edf4
commit 6024088ca0

View File

@ -95,6 +95,20 @@ disable_block_device_use = @DEFDISABLEBLOCK@
# virtio-blk. # virtio-blk.
block_device_driver = "@DEFBLOCKSTORAGEDRIVER@" 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 # Enable iothreads (data-plane) to be used. This causes IO to be
# handled in a separate IO thread. This is currently only implemented # handled in a separate IO thread. This is currently only implemented
# for SCSI. # for SCSI.