diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-07-04 15:46:15 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-07-04 15:46:15 +0000 |
commit | e02d82ee754f0abe242ca20478889eef51ad1b3a (patch) | |
tree | 0b9c66739e7ef8d7deefe0ad12c0068bc8f1f9ce /sys | |
parent | d733cf72e812185a579a4a87868760dab9283e6d (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.
(missed in previous commit)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/extattr.h | 72 | ||||
-rw-r--r-- | sys/xfs/xfs_vopdefs.h | 4 |
2 files changed, 0 insertions, 76 deletions
diff --git a/sys/sys/extattr.h b/sys/sys/extattr.h deleted file mode 100644 index ad02f6effcf..00000000000 --- a/sys/sys/extattr.h +++ /dev/null @@ -1,72 +0,0 @@ -/* $OpenBSD: extattr.h,v 1.2 2002/05/16 16:42:15 drahn Exp $ */ - -/*- - * Copyright (c) 1999, 2000, 2001 Robert N. M. Watson - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD: extattr.h,v 1.6 2001/03/31 16:20:05 rwatson Exp $ - */ -/* - * Userland/kernel interface for Extended File System Attributes - * - * The POSIX.1e implementation page may be reached at: - * http://www.watson.org/fbsd-hardening/posix1e/ - */ - -#ifndef _SYS_EXTATTR_H_ -#define _SYS_EXTATTR_H_ - -#define EXTATTR_NAMESPACE_USER 0x00000001 -#define EXTATTR_NAMESPACE_USER_STRING "user" -#define EXTATTR_NAMESPACE_SYSTEM 0x00000002 -#define EXTATTR_NAMESPACE_SYSTEM_STRING "system" - -#ifdef _KERNEL - -#define EXTATTR_MAXNAMELEN NAME_MAX - -#else -#include <sys/cdefs.h> - -__BEGIN_DECLS -int extattrctl(const char *_path, int _cmd, const char *_filename, - int _attrnamespace, const char *_attrname); -int extattr_delete_fd(int _fd, int _attrnamespace, const char *_attrname); -int extattr_delete_file(const char *_path, int _attrnamespace, - const char *_attrname); -ssize_t extattr_get_fd(int _fd, int _attrnamespace, const char *_attrname, - void *_data, size_t _nbytes); -ssize_t extattr_get_file(const char *_path, int _attrnamespace, - const char *_attrname, void *_data, size_t _nbytes); -int extattr_set_fd(int _fd, int _attrnamespace, const char *_attrname, - const void *_data, size_t _nbytes); -int extattr_set_file(const char *_path, int _attrnamespace, - const char *_attrname, const void *_data, size_t _nbytes); -int extattr_namespace_to_string(int attrnamespace, char **string); -int extattr_string_to_namespace(const char *string, int *attrnamespace); - -__END_DECLS - -#endif /* !_KERNEL */ -#endif /* !_SYS_EXTATTR_H_ */ diff --git a/sys/xfs/xfs_vopdefs.h b/sys/xfs/xfs_vopdefs.h index ff55633d625..f6be67591cb 100644 --- a/sys/xfs/xfs_vopdefs.h +++ b/sys/xfs/xfs_vopdefs.h @@ -68,10 +68,6 @@ NNPFS_VOP_DEF(pathconf); NNPFS_VOP_DEF(advlock); #define HAVE_VOP_REALLOCBLKS 1 NNPFS_VOP_DEF(reallocblks); -#define HAVE_VOP_GETEXTATTR 1 -NNPFS_VOP_DEF(getextattr); -#define HAVE_VOP_SETEXTATTR 1 -NNPFS_VOP_DEF(setextattr); #define HAVE_VOP_STRATEGY 1 NNPFS_VOP_DEF(strategy); #define HAVE_VOP_BWRITE 1 |