feat: Disable copy on write for qcow2 disk images on btrfs

According to qemu-img documentation, it is a no-op for other filesystems.
This commit is contained in:
Luke Yelavich 2024-05-22 08:59:28 +10:00 committed by Martin Wimpress
parent 5d1c8dfc4c
commit e18b7ed591
1 changed files with 1 additions and 1 deletions

View File

@ -798,7 +798,7 @@ function configure_storage() {
esac
case ${disk_format} in
qcow2) create_options="lazy_refcounts=on,preallocation=${preallocation}";;
qcow2) create_options="lazy_refcounts=on,preallocation=${preallocation},nocow=on";;
raw) create_options="preallocation=${preallocation}";;
*) true;;
esac