block: enable in_use flag
commitc1f1ffff21c47622c91c7a19cc9ace588fb746b1
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 26 Jan 2011 14:12:35 +0000 (26 12:12 -0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 7 Feb 2011 11:55:32 +0000 (7 12:55 +0100)
tree346845d18e1f77ca0434ca355e5fa7d98758b498
parent44d631a001edf558d81f4d49c99c5496a949ff3a
block: enable in_use flag

Set block device in use during block migration, disallow drive_del and
bdrv_truncate for in use devices.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 8591675f44929a9e4b5d3a5fd702a4b6d41c7903)
block-migration.c
block.c
blockdev.c