Improve qemu-nbd performance, use cache=writeback

This commit is contained in:
Jakub Jirutka 2017-10-16 17:01:40 +02:00
parent 6ed09223de
commit 9d8b1a5d83

View file

@ -143,7 +143,8 @@ attach_image() {
nbd_dev=$(get_available_nbd) nbd_dev=$(get_available_nbd)
} || die 'No available nbd device found!' } || die 'No available nbd device found!'
qemu-nbd --connect="$nbd_dev" ${format:+--format=$format} "$image" \ qemu-nbd --connect="$nbd_dev" --cache=writeback \
${format:+--format=$format} "$image" \
&& echo "$nbd_dev" && echo "$nbd_dev"
} }