On 07/15/2014 10:49 AM, Chunyan Liu wrote:
Add 'nocow' option to vol xml, so that user can have a chance
to create
a volume with NOCOW flag set on btrfs. It improves performance when the
volume is a file image on btrfs and is used in VM environment.
---
Changes:
* fix typo in V2
* add test case for 'nocow', in separate patch
V2 is here:
http://www.redhat.com/archives/libvir-list/2014-July/msg00361.html
Chunyan Liu (2):
storagevol: add nocow to vol xml
add nocow test case
docs/formatstorage.html.in | 7 +++++
docs/schemas/storagevol.rng | 5 ++++
src/conf/storage_conf.c | 3 ++
src/storage/storage_backend.c | 22 +++++++++++++++
src/util/virstoragefile.h | 1 +
.../storagevolxml2argvdata/qcow2-nocow-compat.argv | 3 ++
tests/storagevolxml2argvdata/qcow2-nocow.argv | 3 ++
tests/storagevolxml2argvtest.c | 6 ++++
tests/storagevolxml2xmlin/vol-qcow2-nocow.xml | 32 ++++++++++++++++++++++
tests/storagevolxml2xmlout/vol-qcow2-nocow.xml | 31 +++++++++++++++++++++
10 files changed, 113 insertions(+)
create mode 100644 tests/storagevolxml2argvdata/qcow2-nocow-compat.argv
create mode 100644 tests/storagevolxml2argvdata/qcow2-nocow.argv
create mode 100644 tests/storagevolxml2xmlin/vol-qcow2-nocow.xml
create mode 100644 tests/storagevolxml2xmlout/vol-qcow2-nocow.xml
ACK
I have fixed the 'since' libvirt version in the documentation and pushed the
series.
Jan