diff --git a/provider/virt_storage/storage_volume.py b/provider/virt_storage/storage_volume.py index c4350c1b6b..76ac6b07f6 100644 --- a/provider/virt_storage/storage_volume.py +++ b/provider/virt_storage/storage_volume.py @@ -191,6 +191,10 @@ def refresh_protocol_by_params(self, params): discard = params.get("image_discard_request", "unmap") self.protocol.set_param("auto-read-only", auto_readonly) self.protocol.set_param("discard", discard) + # image_aio:native requires cache.direct:on + if params.get("image_aio") == "native": + self.protocol.set_param("cache.direct", "on") + self.protocol.set_param("cache.no-flush", "off") def info(self): out = dict()