summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorDavid McNally <dave.mcnally@hp.com>2012-12-13 15:03:13 +0000
committerDavid McNally <dave.mcnally@hp.com>2013-02-20 13:35:04 +0000
commitfaf8dceb639c1c70ef2b3277cfb0a2e370706f45 (patch)
treef32b19e543395527246ca61264f543b10409bd6d /nova/utils.py
parentadfb9217fd4780c7b0e2abb23f44d53cff94b1d4 (diff)
downloadnova-faf8dceb639c1c70ef2b3277cfb0a2e370706f45.tar.gz
nova-faf8dceb639c1c70ef2b3277cfb0a2e370706f45.tar.xz
nova-faf8dceb639c1c70ef2b3277cfb0a2e370706f45.zip
Adding ability to specify the libvirt cache mode for disk devices
In past versions of Nova it was possible to explicitly configure the cache mode of disks via the libvirt XML template. The current approach makes this a derived setting of either “none” or “writethrough” based on the support of O_DIRECT. Whilst this provides a good set of default settings it removes the ability of the cloud provider to use other modes such as “writeback” and “unsafe” which are valuable in certain configurations. This change allows the cache mode to be specified on a per-disk type basis. If a disk type does not have a cache mode specified then the default behaviour remains unchanged. DocImpact bug 1086386 Change-Id: I3d296fe0b4b9b976db02db90ad69fd299cd2096a
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions