diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-07-03 20:14:04 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-07-03 20:14:04 +0000 |
commit | b5bf3768ac38431395a07f41869fa599535c9636 (patch) | |
tree | f3533d026a629b7688eabcd377c92ede86245586 /sys/ufs/ffs | |
parent | 3ae48c77e65290a7ddf1e1154ccb0b9645a5ffaf (diff) |
Extended Attributes was a piece to get to ACLs, however ACLs have not
been worked on, so EA is pointless. Also the code is not enabled
in GENERIC so it is not being tested or maintained.
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r-- | sys/ufs/ffs/ffs_alloc.c | 3 | ||||
-rw-r--r-- | sys/ufs/ffs/ffs_inode.c | 3 | ||||
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 3 | ||||
-rw-r--r-- | sys/ufs/ffs/ffs_softdep_stub.c | 3 | ||||
-rw-r--r-- | sys/ufs/ffs/ffs_subr.c | 3 | ||||
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 37 | ||||
-rw-r--r-- | sys/ufs/ffs/ffs_vnops.c | 15 |
7 files changed, 8 insertions, 59 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index ca532fcf018..ab19bf7b42d 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_alloc.c,v 1.54 2005/05/02 13:13:21 pedro Exp $ */ +/* $OpenBSD: ffs_alloc.c,v 1.55 2005/07/03 20:14:01 drahn Exp $ */ /* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */ /* @@ -45,7 +45,6 @@ #include <dev/rndvar.h> -#include <ufs/ufs/extattr.h> #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> #include <ufs/ufs/ufsmount.h> diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c index 364205824d8..2242392cad3 100644 --- a/sys/ufs/ffs/ffs_inode.c +++ b/sys/ufs/ffs/ffs_inode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_inode.c,v 1.37 2004/06/24 19:35:26 tholo Exp $ */ +/* $OpenBSD: ffs_inode.c,v 1.38 2005/07/03 20:14:01 drahn Exp $ */ /* $NetBSD: ffs_inode.c,v 1.10 1996/05/11 18:27:19 mycroft Exp $ */ /* @@ -45,7 +45,6 @@ #include <uvm/uvm_extern.h> -#include <ufs/ufs/extattr.h> #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> #include <ufs/ufs/ufsmount.h> diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 62ba576934e..164eff01655 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_softdep.c,v 1.58 2005/06/18 18:09:43 millert Exp $ */ +/* $OpenBSD: ffs_softdep.c,v 1.59 2005/07/03 20:14:01 drahn Exp $ */ /* * Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved. * @@ -51,7 +51,6 @@ #include <sys/systm.h> #include <sys/vnode.h> #include <miscfs/specfs/specdev.h> -#include <ufs/ufs/extattr.h> #include <ufs/ufs/dir.h> #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> diff --git a/sys/ufs/ffs/ffs_softdep_stub.c b/sys/ufs/ffs/ffs_softdep_stub.c index 36d55c1cdf7..14dd963d854 100644 --- a/sys/ufs/ffs/ffs_softdep_stub.c +++ b/sys/ufs/ffs/ffs_softdep_stub.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_softdep_stub.c,v 1.9 2005/06/10 17:37:40 pedro Exp $ */ +/* $OpenBSD: ffs_softdep_stub.c,v 1.10 2005/07/03 20:14:02 drahn Exp $ */ /* * Copyright 1998 Marshall Kirk McKusick. All Rights Reserved. @@ -41,7 +41,6 @@ #include <sys/param.h> #include <sys/vnode.h> #include <sys/systm.h> -#include <ufs/ufs/extattr.h> #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> #include <ufs/ffs/ffs_extern.h> diff --git a/sys/ufs/ffs/ffs_subr.c b/sys/ufs/ffs/ffs_subr.c index 0627d63ce69..e0b014249aa 100644 --- a/sys/ufs/ffs/ffs_subr.c +++ b/sys/ufs/ffs/ffs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_subr.c,v 1.15 2004/01/20 03:44:06 tedu Exp $ */ +/* $OpenBSD: ffs_subr.c,v 1.16 2005/07/03 20:14:02 drahn Exp $ */ /* $NetBSD: ffs_subr.c,v 1.6 1996/03/17 02:16:23 christos Exp $ */ /* @@ -41,7 +41,6 @@ #include <sys/mount.h> #include <sys/buf.h> -#include <ufs/ufs/extattr.h> #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> #include <ufs/ufs/ufsmount.h> diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index a891da71390..0c54b77c511 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_vfsops.c,v 1.69 2005/05/22 21:12:42 pedro Exp $ */ +/* $OpenBSD: ffs_vfsops.c,v 1.70 2005/07/03 20:14:02 drahn Exp $ */ /* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */ /* @@ -54,7 +54,6 @@ #include <miscfs/specfs/specdev.h> -#include <ufs/ufs/extattr.h> #include <ufs/ufs/quota.h> #include <ufs/ufs/ufsmount.h> #include <ufs/ufs/inode.h> @@ -82,12 +81,7 @@ const struct vfsops ffs_vfsops = { ffs_vptofh, ffs_init, ffs_sysctl, - ufs_check_export, -#ifdef UFS_EXTATTR - ufs_extattrctl, -#else - vfs_stdextattrctl, -#endif + ufs_check_export }; struct inode_vtbl ffs_vtbl = { @@ -764,9 +758,6 @@ ffs_mountfs(devvp, mp, p) ump->um_seqinc = fs->fs_frag; for (i = 0; i < MAXQUOTAS; i++) ump->um_quotas[i] = NULLVP; -#ifdef UFS_EXTATTR - ufs_extattr_uepm_init(&ump->um_extattr); -#endif devvp->v_specmountpoint = mp; ffs_oldfscompat(fs); @@ -825,21 +816,6 @@ ffs_mountfs(devvp, mp, p) fs->fs_flags &= ~FS_DOSOFTDEP; (void) ffs_sbupdate(ump, MNT_WAIT); } -#ifdef UFS_EXTATTR -#ifdef UFS_EXTATTR_AUTOSTART - /* - * - * Auto-starting does the following: - * - check for /.attribute in the fs, and extattr_start if so - * - for each file in .attribute, enable that file with - * an attribute of the same name. - * Not clear how to report errors -- probably eat them. - * This would all happen while the file system was busy/not - * available, so would effectively be "atomic". - */ - (void) ufs_extattr_autostart(mp, p); -#endif /* !UFS_EXTATTR_AUTOSTART */ -#endif /* !UFS_EXTATTR */ return (0); out: devvp->v_specmountpoint = NULL; @@ -906,15 +882,6 @@ ffs_unmount(mp, mntflags, p) ump = VFSTOUFS(mp); fs = ump->um_fs; -#ifdef UFS_EXTATTR - if ((error = ufs_extattr_stop(mp, p))) { - if (error != EOPNOTSUPP) - printf("ffs_unmount: ufs_extattr_stop returned %d\n", - error); - } else { - ufs_extattr_uepm_destroy(&ump->um_extattr); - } -#endif if (mp->mnt_flag & MNT_SOFTDEP) error = softdep_flushfiles(mp, flags, p); else diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c index 68ec5fefd99..d141aa7672e 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.33 2005/05/28 02:02:50 pedro Exp $ */ +/* $OpenBSD: ffs_vnops.c,v 1.34 2005/07/03 20:14:02 drahn Exp $ */ /* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */ /* @@ -52,7 +52,6 @@ #include <miscfs/specfs/specdev.h> #include <miscfs/fifofs/fifo.h> -#include <ufs/ufs/extattr.h> #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> #include <ufs/ufs/dir.h> @@ -103,10 +102,6 @@ struct vnodeopv_entry_desc ffs_vnodeop_entries[] = { { &vop_advlock_desc, ufs_advlock }, /* advlock */ { &vop_reallocblks_desc, ffs_reallocblks }, /* reallocblks */ { &vop_bwrite_desc, vop_generic_bwrite }, -#ifdef UFS_EXTATTR - { &vop_getextattr_desc, ufs_vop_getextattr }, - { &vop_setextattr_desc, ufs_vop_setextattr }, -#endif { NULL, NULL } }; struct vnodeopv_desc ffs_vnodeop_opv_desc = @@ -128,10 +123,6 @@ struct vnodeopv_entry_desc ffs_specop_entries[] = { { &vop_unlock_desc, ufs_unlock }, /* unlock */ { &vop_print_desc, ufs_print }, /* print */ { &vop_islocked_desc, ufs_islocked }, /* islocked */ -#ifdef UFS_EXTATTR - { &vop_getextattr_desc, ufs_vop_getextattr }, - { &vop_setextattr_desc, ufs_vop_setextattr }, -#endif { NULL, NULL } }; struct vnodeopv_desc ffs_specop_opv_desc = @@ -155,10 +146,6 @@ struct vnodeopv_entry_desc ffs_fifoop_entries[] = { { &vop_print_desc, ufs_print }, /* print */ { &vop_islocked_desc, ufs_islocked }, /* islocked */ { &vop_bwrite_desc, vop_generic_bwrite }, -#ifdef UFS_EXTATTR - { &vop_getextattr_desc, ufs_vop_getextattr }, - { &vop_setextattr_desc, ufs_vop_setextattr }, -#endif { NULL, NULL } }; struct vnodeopv_desc ffs_fifoop_opv_desc = |