Skip to content

Commit

Permalink
feat: Disable copy on write for qcow2 disk images on btrfs
Browse files Browse the repository at this point in the history
According to qemu-img documentation, it is a no-op for other filesystems.
  • Loading branch information
TheMuso committed May 21, 2024
1 parent edfd812 commit 2e98ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,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
Expand Down

0 comments on commit 2e98ee5

Please sign in to comment.