Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/sys/sys don't use IO_APPEND. In the vdev...



details:   https://anonhg.NetBSD.org/src/rev/0a617422fe4b
branches:  trunk
changeset: 790179:0a617422fe4b
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Sep 23 20:44:24 2013 +0000

description:
don't use IO_APPEND. In the vdev_file.c we end up appending to our virtual
file as a filesystem! With this change:

    $ dd if=/dev/zero of=disk1 count=266144
    $ zpool create crap $PWD/disk1

mounts /crap and it seems to work ok, until I try unmounting

diffstat:

 external/cddl/osnet/sys/sys/vnode.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 78455ad92770 -r 0a617422fe4b external/cddl/osnet/sys/sys/vnode.h
--- a/external/cddl/osnet/sys/sys/vnode.h       Mon Sep 23 20:41:19 2013 +0000
+++ b/external/cddl/osnet/sys/sys/vnode.h       Mon Sep 23 20:44:24 2013 +0000
@@ -1,5 +1,5 @@
 
-/*     $NetBSD: vnode.h,v 1.10 2013/09/23 19:44:21 christos Exp $      */
+/*     $NetBSD: vnode.h,v 1.11 2013/09/23 20:44:24 christos Exp $      */
 
 /*
  * CDDL HEADER START
@@ -577,7 +577,7 @@
        ASSERT(ioflag == 0);
        ASSERT(ulimit == RLIM64_INFINITY);
 
-       ioflag = IO_APPEND | IO_UNIT;
+       ioflag = IO_UNIT;
 
        error = vn_rdwr(rw, vp, base, len, offset, seg, ioflag, cr,
            &resid, curlwp);



Home | Main Index | Thread Index | Old Index