Improve qemu-nbd performance, use cache=writeback
This commit is contained in:
parent
6ed09223de
commit
9d8b1a5d83
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue