]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/qemu-xen-traditional.git/commit
qemu-xen-trad/block: get right partition size
authorAdam Hamsik <haad@netbsd.org>
Thu, 7 Jun 2012 18:36:26 +0000 (19:36 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 7 Jun 2012 18:37:55 +0000 (19:37 +0100)
commitcbf0f291d4f1d40c59f56b8bd73292b8ad4f84b5
tree7de7ef77757763fb1f3d327222f5135368a8e159
parent136f340531929c723113bbd625d99de2b552a871
qemu-xen-trad/block: get right partition size

use the correct way to get the size of a disk device or partition

This this a backport of d1f6fd8d1400ab356aee776b1ecc3ed1e89dbeaa.

From: Adam Hamsik <haad@netbsd.org>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Backport-requested-by: Roger Pau Monne <roger.pau@citrix.com>
Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
block-raw-posix.c