Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs Get new vnode whe...
details: https://anonhg.NetBSD.org/src/rev/a7e1af03c2b7
branches: trunk
changeset: 754719:a7e1af03c2b7
user: haad <haad%NetBSD.org@localhost>
date: Mon May 10 06:10:59 2010 +0000
description:
Get new vnode when creating zfs share dir for it's znode.
diffstat:
external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 954db9d98c33 -r a7e1af03c2b7 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c Mon May 10 03:39:57 2010 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c Mon May 10 06:10:59 2010 +0000
@@ -484,7 +484,8 @@
sharezp->z_zfsvfs = zfsvfs;
vp = ZTOV(sharezp);
- vn_reinit(vp);
+ error = getnewvnode(VT_ZFS, zfsvfs->z_parent->z_vfs,
+ zfs_vnodeop_p, &zp->z_vnode);
vp->v_type = VDIR;
VERIFY(0 == zfs_acl_ids_create(sharezp, IS_ROOT_NODE, &vattr,
Home |
Main Index |
Thread Index |
Old Index