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

2011-05-23 Thread Christoph Egger
On 05/23/11 13:06, Christoph Hellwig wrote: On Mon, May 23, 2011 at 12:34:39PM +0200, Christoph Egger wrote: 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. (fro

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

2011-05-23 Thread Christoph Hellwig
On Mon, May 23, 2011 at 12:34:39PM +0200, Christoph Egger wrote: > > 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) Please split tha

[Qemu-devel] [PATCH] block/raw-posix: get right size of 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 diff --git a/block