Re: [Qemu-devel] [PATCH] block/raw-posix: get right partition size

2011-05-25 Thread Kevin Wolf
Am 23.05.2011 14:31, schrieb Christoph Egger: > > use the correct way to get the size of a disk device or partition > > From: Adam Hamsik > Signed-off-by: Christoph Egger Thanks, applied to the block branch. Kevin

[Qemu-devel] [PATCH] block/raw-posix: get right partition size

2011-05-23 Thread Christoph Egger
use the correct way to get the size of a disk device or partition From: Adam Hamsik Signed-off-by: Christoph Egger diff --git a/block/raw-posix.c b/block/raw-posix.c index 6b72470..d05f373 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -64,6 +64,13 @@ #include #endif +#ifdef __

[Qemu-devel] [PATCH] block/raw-posix: get right partition size

2011-05-23 Thread Christoph Egger
This does 2 things: - use the correct way to get the size of a disk device or partition (from h...@netbsd.org) - if given a block device, use the character device instead. (from bou...@netbsd.org) From: Adam Hamsik From: Manuel Bouyer Signed-off-by: Christoph Egger -- ---to satisfy Europ