> -----Original Message----- > From: Roman Kagan <[email protected]> > Sent: 27 May 2020 13:45 > To: [email protected] > Cc: Kevin Wolf <[email protected]>; [email protected]; Gerd > Hoffmann <[email protected]>; > Daniel P. Berrangé <[email protected]>; Paolo Bonzini > <[email protected]>; Anthony Perard > <[email protected]>; Laurent Vivier <[email protected]>; Max Reitz > <[email protected]>; qemu- > [email protected]; Philippe Mathieu-Daudé <[email protected]>; Eric Blake > <[email protected]>; Paul > Durrant <[email protected]>; Fam Zheng <[email protected]>; John Snow > <[email protected]>; Michael S. Tsirkin > <[email protected]>; Eduardo Habkost <[email protected]>; Keith Busch > <[email protected]>; Stefano > Stabellini <[email protected]>; Stefan Hajnoczi <[email protected]> > Subject: [PATCH v6 2/5] block: consolidate blocksize properties consistency > checks > > Several block device properties related to blocksize configuration must > be in certain relationship WRT each other: physical block must be no > smaller than logical block; min_io_size, opt_io_size, and > discard_granularity must be a multiple of a logical block. > > To ensure these requirements are met, add corresponding consistency > checks to blkconf_blocksizes, adjusting its signature to communicate > possible error to the caller. Also remove the now redundant consistency > checks from the specific devices. > > Signed-off-by: Roman Kagan <[email protected]>
Reviewed-by: Paul Durrant <[email protected]>
