« Previous | Next » 

Revision ad6aef43

IDad6aef43d36fe65701ff84193576d7f3dcb82dc5

Added by Kevin Wolf about 10 years ago

raw: Fix BlockLimits passthrough

raw copies over the BlockLimits of bs->file during bdrv_open().
However, since commit d34682cd it is immediately overwritten during
bdrv_refresh_limits(). This caused all fields except for
opt_transfer_length and opt_mem_alignment (which happen to be correctly
inherited in generic code) to be zeroed.

Move the BlockLimit assignment to a .bdrv_refresh_limits() callback to
make it work again for all fields.

Reported-by: Laszlo Ersek <>
Signed-off-by: Kevin Wolf <>
Reviewed-by: Laszlo Ersek <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences