]> Git Repo - qemu.git/commit
block: Reset buffer alignment on detach
authorMarkus Armbruster <[email protected]>
Tue, 6 Sep 2011 16:58:57 +0000 (18:58 +0200)
committerKevin Wolf <[email protected]>
Mon, 12 Sep 2011 13:17:22 +0000 (15:17 +0200)
commit29e05f202238fe0efee4a0ecccc3fd348448a37c
tree052961f88f886dc55f2dcc4485b9120195a05282
parent7b6f9300d55c6f01a65ed27a25b87b2748faceee
block: Reset buffer alignment on detach

BlockDriverState member buffer_alignment is initially 512.  The device
model may set them, with bdrv_set_buffer_alignment().  If the device
model gets detached (hot unplug), the device's alignment is left
behind.  Only okay because device hot unplug automatically destroys
the BlockDriverState.  But that's a questionable feature, best not to
rely on it.

Signed-off-by: Markus Armbruster <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block.c
This page took 0.020977 seconds and 4 git commands to generate.