raw-posix: Fix raw_getlength() to always return -errno on error
commitaa729704f48331787d0afac510df214aedda2843
authorMarkus Armbruster <armbru@redhat.com>
Thu, 26 Jun 2014 11:23:16 +0000 (26 13:23 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 7 Jul 2014 07:41:29 +0000 (7 09:41 +0200)
tree918f47dd2515320ce1037b1b9b950ed6f305b617
parenta42a1facb77fb0e3db9a416922de13d9ab66c26a
raw-posix: Fix raw_getlength() to always return -errno on error

We got a merry mix of -1 and -errno here.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/raw-posix.c