Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpuser Add errno translation for bio operations



details:   https://anonhg.NetBSD.org/src/rev/04855f64c7eb
branches:  trunk
changeset: 801952:04855f64c7eb
user:      justin <justin%NetBSD.org@localhost>
date:      Mon Aug 25 10:21:39 2014 +0000

description:
Add errno translation for bio operations

diffstat:

 lib/librumpuser/rumpuser_bio.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r d48f6149d253 -r 04855f64c7eb lib/librumpuser/rumpuser_bio.c
--- a/lib/librumpuser/rumpuser_bio.c    Sun Aug 24 22:56:18 2014 +0000
+++ b/lib/librumpuser/rumpuser_bio.c    Mon Aug 25 10:21:39 2014 +0000
@@ -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 <sys/types.h>
@@ -75,7 +75,7 @@
                    biop->bio_dlen, biop->bio_off);
                if (rv < 0) {
                        rv = 0;
-                       error = errno;
+                       error = rumpuser__errtrans(errno);
                }
        } else {
                error = 0;
@@ -83,7 +83,7 @@
                    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,



Home | Main Index | Thread Index | Old Index