diff options
author | 2007-05-29 21:28:05 +0000 | |
---|---|---|
committer | 2007-05-29 21:28:05 +0000 | |
commit | 28f1d4cba9116d5cf38ff7b448f70b33a0240a90 (patch) | |
tree | 2a3cf395b15122bf4460c79118f667f4453626fd | |
parent | adapt ztsscale and the installer to use wscons ioctls for calibration; (diff) | |
download | wireguard-openbsd-28f1d4cba9116d5cf38ff7b448f70b33a0240a90.tar.xz wireguard-openbsd-28f1d4cba9116d5cf38ff7b448f70b33a0240a90.zip |
make xfs use VT_XFS instead of VT_AFS when getting vnodes
via getnewvnode();
ok art@,tedu@
tested by todd@
-rw-r--r-- | sys/xfs/xfs_node-bsd.c | 2 | ||||
-rw-r--r-- | sys/xfs/xfs_syscalls-common.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/xfs/xfs_node-bsd.c b/sys/xfs/xfs_node-bsd.c index 9d635545f6d..0ceea050e63 100644 --- a/sys/xfs/xfs_node-bsd.c +++ b/sys/xfs/xfs_node-bsd.c @@ -58,7 +58,7 @@ xfs_getnewvnode(struct xfs *xfsp, struct vnode **vpp, struct xfs_node *result, *check; int error; - error = getnewvnode(VT_AFS, NNPFS_TO_VFS(xfsp), xfs_vnodeop_p, vpp); + error = getnewvnode(VT_XFS, NNPFS_TO_VFS(xfsp), xfs_vnodeop_p, vpp); if (error) return error; diff --git a/sys/xfs/xfs_syscalls-common.c b/sys/xfs/xfs_syscalls-common.c index 271ac225245..dc0b1a6da23 100644 --- a/sys/xfs/xfs_syscalls-common.c +++ b/sys/xfs/xfs_syscalls-common.c @@ -506,7 +506,7 @@ remote_pioctl (d_thread_t *p, if (vp != NULL) { struct xfs_node *xn; - if (vp->v_tag != VT_AFS) { + if (vp->v_tag != VT_XFS) { NNPFSDEB(XDEBSYS, ("xfs_syscall: file is not in afs\n")); vrele(vp); error = EINVAL; |