summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2005-05-28 02:02:51 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2005-05-28 02:02:51 +0000
commit80e59a9582b4ee3b00346f72b79290562723a69c (patch)
tree556579f88d2338157be4914dde0296074fc2dc0e /sys/ufs
parent2aaee4efb4b0f3627c1815010311e344880f11b9 (diff)
ufs_whiteout() is now pointless, remove it, okay millert@
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_vnops.c3
-rw-r--r--sys/ufs/lfs/lfs_vnops.c3
-rw-r--r--sys/ufs/ufs/ufs_extern.h3
-rw-r--r--sys/ufs/ufs/ufs_vnops.c64
4 files changed, 4 insertions, 69 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c
index 2ae13f6714b..68ec5fefd99 100644
--- a/sys/ufs/ffs/ffs_vnops.c
+++ b/sys/ufs/ffs/ffs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vnops.c,v 1.32 2005/02/17 18:07:37 jfb Exp $ */
+/* $OpenBSD: ffs_vnops.c,v 1.33 2005/05/28 02:02:50 pedro Exp $ */
/* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */
/*
@@ -68,7 +68,6 @@ struct vnodeopv_entry_desc ffs_vnodeop_entries[] = {
{ &vop_default_desc, vn_default_error },
{ &vop_lookup_desc, ufs_lookup }, /* lookup */
{ &vop_create_desc, ufs_create }, /* create */
- { &vop_whiteout_desc, ufs_whiteout }, /* whiteout */
{ &vop_mknod_desc, ufs_mknod }, /* mknod */
{ &vop_open_desc, ufs_open }, /* open */
{ &vop_close_desc, ufs_close }, /* close */
diff --git a/sys/ufs/lfs/lfs_vnops.c b/sys/ufs/lfs/lfs_vnops.c
index 05f02d97493..edf9a3bdbf2 100644
--- a/sys/ufs/lfs/lfs_vnops.c
+++ b/sys/ufs/lfs/lfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lfs_vnops.c,v 1.11 2004/06/24 19:35:27 tholo Exp $ */
+/* $OpenBSD: lfs_vnops.c,v 1.12 2005/05/28 02:02:50 pedro Exp $ */
/* $NetBSD: lfs_vnops.c,v 1.11 1996/05/11 18:27:41 mycroft Exp $ */
/*
@@ -67,7 +67,6 @@ struct vnodeopv_entry_desc lfs_vnodeop_entries[] = {
{ &vop_default_desc, vn_default_error },
{ &vop_lookup_desc, ufs_lookup }, /* lookup */
{ &vop_create_desc, ufs_create }, /* create */
- { &vop_whiteout_desc, ufs_whiteout }, /* whiteout */
{ &vop_mknod_desc, ufs_mknod }, /* mknod */
{ &vop_open_desc, ufs_open }, /* open */
{ &vop_close_desc, lfs_close }, /* close */
diff --git a/sys/ufs/ufs/ufs_extern.h b/sys/ufs/ufs/ufs_extern.h
index 6c08a9eede5..c40407d5545 100644
--- a/sys/ufs/ufs/ufs_extern.h
+++ b/sys/ufs/ufs/ufs_extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufs_extern.h,v 1.22 2004/12/07 04:37:28 tedu Exp $ */
+/* $OpenBSD: ufs_extern.h,v 1.23 2005/05/28 02:02:50 pedro Exp $ */
/* $NetBSD: ufs_extern.h,v 1.5 1996/02/09 22:36:03 christos Exp $ */
/*-
@@ -91,7 +91,6 @@ int ufs_setattr(void *);
int ufs_strategy(void *);
int ufs_symlink(void *);
int ufs_unlock(void *);
-int ufs_whiteout(void *);
int ufsspec_close(void *);
int ufsspec_read(void *);
int ufsspec_write(void *);
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c
index 9f91e6d2312..d5ce9939f29 100644
--- a/sys/ufs/ufs/ufs_vnops.c
+++ b/sys/ufs/ufs/ufs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufs_vnops.c,v 1.62 2005/05/22 21:12:42 pedro Exp $ */
+/* $OpenBSD: ufs_vnops.c,v 1.63 2005/05/28 02:02:50 pedro Exp $ */
/* $NetBSD: ufs_vnops.c,v 1.18 1996/05/11 18:28:04 mycroft Exp $ */
/*
@@ -744,68 +744,6 @@ out2:
}
/*
- * whiteout vnode call
- */
-int
-ufs_whiteout(v)
- void *v;
-{
- struct vop_whiteout_args /* {
- struct vnode *a_dvp;
- struct componentname *a_cnp;
- int a_flags;
- } */ *ap = v;
- struct vnode *dvp = ap->a_dvp;
- struct componentname *cnp = ap->a_cnp;
- struct direct newdir;
- int error = 0;
-
- switch (ap->a_flags) {
- case LOOKUP:
- /* 4.4 format directories support whiteout operations */
- if (dvp->v_mount->mnt_maxsymlinklen > 0)
- return (0);
- return (EOPNOTSUPP);
-
- case CREATE:
- /* create a new directory whiteout */
-#ifdef DIAGNOSTIC
- if ((cnp->cn_flags & SAVENAME) == 0)
- panic("ufs_whiteout: missing name");
- if (dvp->v_mount->mnt_maxsymlinklen <= 0)
- panic("ufs_whiteout: old format filesystem");
-#endif
-
- newdir.d_ino = WINO;
- newdir.d_namlen = cnp->cn_namelen;
- bcopy(cnp->cn_nameptr, newdir.d_name, (unsigned)cnp->cn_namelen + 1);
- newdir.d_type = DT_WHT;
- error = ufs_direnter(dvp, NULL, &newdir, cnp, NULL);
- break;
-
- case DELETE:
- /* remove an existing directory whiteout */
-#ifdef DIAGNOSTIC
- if (dvp->v_mount->mnt_maxsymlinklen <= 0)
- panic("ufs_whiteout: old format filesystem");
-#endif
-
- cnp->cn_flags &= ~DOWHITEOUT;
- error = ufs_dirremove(dvp, NULL, cnp->cn_flags, 0);
- break;
- default:
- panic("ufs_whiteout: unknown op");
- /* NOTREACHED */
- }
- if (cnp->cn_flags & HASBUF) {
- pool_put(&namei_pool, cnp->cn_pnbuf);
- cnp->cn_flags &= ~HASBUF;
- }
- return (error);
-}
-
-
-/*
* Rename system call.
* rename("foo", "bar");
* is essentially