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
This commit is contained in:
parent
4f1b5d5104
commit
50a36d05ad
|
@ -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 @@ zfs_vn_rdwr(enum uio_rw rw, vnode_t *vp, caddr_t base, ssize_t len,
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue