« Previous | Next » 

Revision df2a6f29

IDdf2a6f29a5019707d69f6eeb30cf792841cae5aa

Added by Paolo Bonzini over 10 years ago

block: keep bs->total_sectors up to date even for growable block devices

If a BlockDriverState is growable, after every write we need to
check if bs->total_sectors might have changed. With this change,
bdrv_getlength does not need anymore a system call.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences