On 05/06/2017 07:43 AM, Aurelien Jarno wrote: > The Linux kernel uses different I/O scheduler depending if the block > device is a rotational device or not. Also it uses rotational devices > to add entropy to the random pool. > > This patch add a rotational qdev property so that the block device can > be configured as a rotational device or a non-rotational device. Default > to true to not change the default behavior. > > Signed-off-by: Aurelien Jarno <aurel...@aurel32.net> > --- > blockdev.c | 4 ++++ > include/hw/block/block.h | 4 +++- > 2 files changed, 7 insertions(+), 1 deletion(-)
Please remember to send a 0/3 cover letter when sending a series (you can use 'git config format.coverletter auto' to make it easier). The NBD server has the ability to expose to a client whether a given exported volume is rotational or not; so there may be some additional integration you should perform to make nbd-server properly export this new property. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature