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 authored and flexiondotorg committed Jun 30, 2024
1 parent 5d1c8df commit e18b7ed
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 @@ -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
Expand Down

0 comments on commit e18b7ed

Please sign in to comment.