]> git.proxmox.com Git - mirror_qemu.git/commit - block/raw-posix.c
block/raw-posix.c: Fix raw_getlength() on Mac OS X block devices
authorProgrammingkid <programmingkidx@gmail.com>
Mon, 19 Jan 2015 22:12:55 +0000 (17:12 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Feb 2015 17:00:53 +0000 (18:00 +0100)
commit728dacbda817b2ca259e9d337fab06bcf14e94a6
treec2b7137760bea1deb16296e159ccda497918b9ed
parent8333c0dff14a8a16c8ad3a95c6ea09f9d6f395b3
block/raw-posix.c: Fix raw_getlength() on Mac OS X block devices

This patch replaces the dummy code in raw_getlength() for block devices
on OS X, which always returned LLONG_MAX, with a real implementation
that returns the actual block device size.

Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-posix.c