From: Richard W.M. Jones Date: Thu, 2 Jul 2009 20:32:59 +0000 (+0100) Subject: Improve virtio-blk performance (RHBZ#509383). X-Git-Tag: 1.0.55~4 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=373a9ad0abb09ee079da834d251a744cdbe9ae70;p=libguestfs.git Improve virtio-blk performance (RHBZ#509383). --- diff --git a/appliance/init b/appliance/init index 48c7c34..dbe53f4 100755 --- a/appliance/init +++ b/appliance/init @@ -44,6 +44,9 @@ ls -l /dev lvm vgscan --ignorelockingfailure lvm vgchange -ay --ignorelockingfailure +# Improve virtio-blk performance (RHBZ#509383). +for f in /sys/block/vd*/queue/rotational; do echo 1 > $f; done + if grep -sq guestfs_rescue=1 /proc/cmdline; then bash -i fi