diff options
author | delphij <delphij@FreeBSD.org> | 2011-07-21 20:02:22 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2011-07-21 20:02:22 +0000 |
commit | a2e6406c417fe1611b6c46cd75bac0a071f6bcae (patch) | |
tree | d13f4e5610a13cc94c9dff88a38a3ddfd418bd5b /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c | |
parent | e413ef16f1a47047a49e5770c904a5b5066c6ae4 (diff) | |
download | FreeBSD-src-a2e6406c417fe1611b6c46cd75bac0a071f6bcae.zip FreeBSD-src-a2e6406c417fe1611b6c46cd75bac0a071f6bcae.tar.gz |
Bring the code more in-line with OpenSolaris source to
ease future port.
Reviewed by: pjd, mm
Approved by: re (kib)
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c index 0898e94..29ca446 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c @@ -713,6 +713,10 @@ zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, break; #endif /* sun */ case VFIFO: +#ifdef sun + case VSOCK: + case VDOOR: +#endif /* sun */ vp->v_op = &zfs_fifoops; break; case VREG: @@ -721,6 +725,14 @@ zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, vp->v_op = &zfs_shareops; } break; +#ifdef sun + case VLNK: + vn_setops(vp, zfs_symvnodeops); + break; + default: + vn_setops(vp, zfs_evnodeops); + break; +#endif /* sun */ } if (vp->v_type != VFIFO) VN_LOCK_ASHARE(vp); |