From 103543d43b88fe95d0e6e024fdf77f964cbc4283 Mon Sep 17 00:00:00 2001 From: justin Date: Mon, 25 Aug 2014 10:21:39 +0000 Subject: [PATCH] Add errno translation for bio operations --- lib/librumpuser/rumpuser_bio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librumpuser/rumpuser_bio.c b/lib/librumpuser/rumpuser_bio.c index 714d2b88186d..2ed984fb57f8 100644 --- a/lib/librumpuser/rumpuser_bio.c +++ b/lib/librumpuser/rumpuser_bio.c @@ -1,4 +1,4 @@ -/* $NetBSD: rumpuser_bio.c,v 1.8 2014/06/16 21:07:28 alnsn Exp $ */ +/* $NetBSD: rumpuser_bio.c,v 1.9 2014/08/25 10:21:39 justin Exp $ */ /*- * Copyright (c) 2013 Antti Kantee. All Rights Reserved. @@ -28,7 +28,7 @@ #include "rumpuser_port.h" #if !defined(lint) -__RCSID("$NetBSD: rumpuser_bio.c,v 1.8 2014/06/16 21:07:28 alnsn Exp $"); +__RCSID("$NetBSD: rumpuser_bio.c,v 1.9 2014/08/25 10:21:39 justin Exp $"); #endif /* !lint */ #include @@ -75,7 +75,7 @@ dobio(struct rumpuser_bio *biop) biop->bio_dlen, biop->bio_off); if (rv < 0) { rv = 0; - error = errno; + error = rumpuser__errtrans(errno); } } else { error = 0; @@ -83,7 +83,7 @@ dobio(struct rumpuser_bio *biop) biop->bio_dlen, biop->bio_off); if (rv < 0) { rv = 0; - error = errno; + error = rumpuser__errtrans(errno); } else if (biop->bio_op & RUMPUSER_BIO_SYNC) { #ifdef __NetBSD__ fsync_range(biop->bio_fd, FDATASYNC,