diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-07-02 21:32:59 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-07-02 21:32:59 +0100 |
commit | 373a9ad0abb09ee079da834d251a744cdbe9ae70 (patch) | |
tree | bcda4ee50d08447254f32b0046fc68f0a5e29a13 /appliance | |
parent | c7a3729f459a845f4e7b30c09ea378c54ee49c32 (diff) | |
download | libguestfs-373a9ad0abb09ee079da834d251a744cdbe9ae70.tar.gz libguestfs-373a9ad0abb09ee079da834d251a744cdbe9ae70.tar.xz libguestfs-373a9ad0abb09ee079da834d251a744cdbe9ae70.zip |
Improve virtio-blk performance (RHBZ#509383).
Diffstat (limited to 'appliance')
-rwxr-xr-x | appliance/init | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/appliance/init b/appliance/init index 48c7c34d..dbe53f45 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 |