summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_vnops.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-02-22 20:37:47 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-02-22 20:37:47 +0000
commitee9702d877ed9cc007f77da8cbcb7ea74f9f4dc0 (patch)
tree6a5edf89be5ae684d40781673d7ec545b4db57a2 /sys/ufs/ffs/ffs_vnops.c
parentea91a65c1e79695fea7cb80d2acfa092fc947b3d (diff)
Extended Attribute support from FreeBSD/TrustedBSD ok art@, deraadt@
Diffstat (limited to 'sys/ufs/ffs/ffs_vnops.c')
-rw-r--r--sys/ufs/ffs/ffs_vnops.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c
index 1020b14a2bb..8e9ce74b9ba 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.25 2001/12/19 08:58:07 art Exp $ */
+/* $OpenBSD: ffs_vnops.c,v 1.26 2002/02/22 20:37:46 drahn Exp $ */
/* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */
/*
@@ -56,6 +56,7 @@
#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>
@@ -107,7 +108,11 @@ 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 },
- { (struct vnodeop_desc*)NULL, (int(*) __P((void*)))NULL }
+#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 =
{ &ffs_vnodeop_p, ffs_vnodeop_entries };
@@ -152,6 +157,10 @@ struct vnodeopv_entry_desc ffs_specop_entries[] = {
{ &vop_advlock_desc, spec_advlock }, /* advlock */
{ &vop_reallocblks_desc, spec_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_specop_opv_desc =
@@ -198,6 +207,10 @@ struct vnodeopv_entry_desc ffs_fifoop_entries[] = {
{ &vop_advlock_desc, fifo_advlock }, /* advlock */
{ &vop_reallocblks_desc, fifo_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_fifoop_opv_desc =