Message ID | 1420738472-23267-79-git-send-email-mdroth@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
diff --git a/block/raw-posix.c b/block/raw-posix.c index 2d51f26..efa5686 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -447,6 +447,7 @@ static int raw_open_common(BlockDriverState *bs, QDict *options, s->has_write_zeroes = true; if (fstat(s->fd, &st) < 0) { + ret = -errno; error_setg_errno(errp, errno, "Could not stat file"); goto fail; }