block: Fix bdrv_commit
commitc33491978c5c4c746cc0272d5f2df50aa14d1f02
authorKevin Wolf <kwolf@redhat.com>
Thu, 6 May 2010 14:34:56 +0000 (6 16:34 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 17 May 2010 08:20:05 +0000 (17 10:20 +0200)
tree6fde1e1cbd85836334b3b7722bbcf87d835dc58a
parent209930818bc0bb1400fbfa7d6448066c1b9e7b4c
block: Fix bdrv_commit

When reopening the image, don't guess the driver, but use the same driver as
was used before. This is important if the format=... option was used for that
image.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c