diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-05-26 00:33:46 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-05-26 00:33:46 +0000 |
commit | 6076db144c5ee267e42bff4d3f33bdd00abc389b (patch) | |
tree | 432c2b93feff2d11d747476687927cf20509a508 /sys/compat/netbsd | |
parent | 40b0596b9aa87e81b667caabb171ebbb23994418 (diff) |
RIP stackable filesystems, ok marius@ tedu@, discussed with deraadt@
Diffstat (limited to 'sys/compat/netbsd')
-rw-r--r-- | sys/compat/netbsd/netbsd_getcwd.c | 24 | ||||
-rw-r--r-- | sys/compat/netbsd/netbsd_getdents.c | 56 |
2 files changed, 3 insertions, 77 deletions
diff --git a/sys/compat/netbsd/netbsd_getcwd.c b/sys/compat/netbsd/netbsd_getcwd.c index 5c5a00ebde6..330e7d405b5 100644 --- a/sys/compat/netbsd/netbsd_getcwd.c +++ b/sys/compat/netbsd/netbsd_getcwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_getcwd.c,v 1.7 2004/08/03 12:10:47 todd Exp $ */ +/* $OpenBSD: netbsd_getcwd.c,v 1.8 2005/05/26 00:33:45 pedro Exp $ */ /* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */ /*- @@ -262,27 +262,7 @@ unionread: } } } while (!eofflag); -#if 0 - /* - * Deal with mount -o union, which unions only the - * root directory of the mount. - */ - if ((uvp->v_flag & VROOT) && - (uvp->v_mount->mnt_flag & MNT_UNION)) { - struct vnode *tvp = uvp; - uvp = uvp->v_mount->mnt_vnodecovered; - vput(tvp); - VREF(uvp); - *uvpp = uvp; - error = vn_lock(uvp, LK_EXCLUSIVE | LK_RETRY); - if (error != 0) { - vrele(uvp); - *uvpp = uvp = NULL; - goto out; - } - goto unionread; - } -#endif + error = ENOENT; out: diff --git a/sys/compat/netbsd/netbsd_getdents.c b/sys/compat/netbsd/netbsd_getdents.c index 53f2d7c5efd..dd621bd4bd4 100644 --- a/sys/compat/netbsd/netbsd_getdents.c +++ b/sys/compat/netbsd/netbsd_getdents.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_getdents.c,v 1.8 2003/06/02 23:28:00 millert Exp $ */ +/* $OpenBSD: netbsd_getdents.c,v 1.9 2005/05/26 00:33:45 pedro Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -66,7 +66,6 @@ netbsd_vn_readdir(fp, buf, segflg, count, done, p, cookies, ncookies) struct uio auio; int error, eofflag; -unionread: if (vp->v_type != VDIR) return (EINVAL); aiov.iov_base = buf; @@ -85,59 +84,6 @@ unionread: VOP_UNLOCK(vp, 0, p); if (error) return (error); - -#ifdef UNION -{ - extern int (**union_vnodeop_p)(void *); - extern struct vnode *union_dircache(struct vnode *); - - if (count == auio.uio_resid && (vp->v_op == union_vnodeop_p)) { - struct vnode *lvp; - - lvp = union_dircache(vp); - if (lvp != NULLVP) { - struct vattr va; - - /* - * If the directory is opaque, - * then don't show lower entries - */ - error = VOP_GETATTR(vp, &va, fp->f_cred, p); - if (va.va_flags & OPAQUE) { - vput(lvp); - lvp = NULL; - } - } - - if (lvp != NULLVP) { - error = VOP_OPEN(lvp, FREAD, fp->f_cred, p); - if (error) { - vput(lvp); - return (error); - } - VOP_UNLOCK(lvp, 0, p); - fp->f_data = (caddr_t) lvp; - fp->f_offset = 0; - error = vn_close(vp, FREAD, fp->f_cred, p); - if (error) - return (error); - vp = lvp; - goto unionread; - } - } -} -#endif /* UNION */ - - if (count == auio.uio_resid && (vp->v_flag & VROOT) && - (vp->v_mount->mnt_flag & MNT_UNION)) { - struct vnode *tvp = vp; - vp = vp->v_mount->mnt_vnodecovered; - VREF(vp); - fp->f_data = (caddr_t) vp; - fp->f_offset = 0; - vrele(tvp); - goto unionread; - } *done = count - auio.uio_resid; return error; } |