From owner-cvs-all Sat Feb 9 20:43:30 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0C92237B41C; Sat, 9 Feb 2002 20:43:23 -0800 (PST) Received: (from rwatson@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1A4hNN00572; Sat, 9 Feb 2002 20:43:23 -0800 (PST) (envelope-from rwatson) Message-Id: <200202100443.g1A4hNN00572@freefall.freebsd.org> From: Robert Watson Date: Sat, 9 Feb 2002 20:43:23 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/pseudofs pseudofs.h pseudofs_vnops.c src/sys/kern syscalls.master vfs_syscalls.c vfs_vnops.c vnode_if.src src/sys/security/lomac lomacfs_vnops.c src/sys/sys extattr.h src/sys/ufs/ufs ufs_extattr.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG rwatson 2002/02/09 20:43:22 PST Modified files: sys/fs/pseudofs pseudofs.h pseudofs_vnops.c sys/kern syscalls.master vfs_syscalls.c vfs_vnops.c vnode_if.src sys/security/lomac lomacfs_vnops.c sys/sys extattr.h sys/ufs/ufs ufs_extattr.c Log: Part I: Update extended attribute API and ABI: o Modify the system call syntax for extattr_{get,set}_{fd,file}() so as not to use the scatter gather API (which appeared not to be used by any consumers, and be less portable), rather, accepts 'data' and 'nbytes' in the style of other simple read/write interfaces. This changes the API and ABI. o Modify system call semantics so that extattr_get_{fd,file}() return a size_t. When performing a read, the number of bytes read will be returned, unless the data pointer is NULL, in which case the number of bytes of data are returned. This changes the API only. o Modify the VOP_GETEXTATTR() vnode operation to accept a *size_t argument so as to return the size, if desirable. If set to NULL, the size will not be returned. o Update various filesystems (pseodofs, ufs) to DTRT. These changes should make extended attributes more useful and more portable. More commits to rebuild the system call files, as well as update userland utilities to follow. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Revision Changes Path 1.17 +1 -1 src/sys/fs/pseudofs/pseudofs.h 1.24 +1 -1 src/sys/fs/pseudofs/pseudofs_vnops.c 1.103 +7 -8 src/sys/kern/syscalls.master 1.223 +60 -81 src/sys/kern/vfs_syscalls.c 1.129 +2 -1 src/sys/kern/vfs_vnops.c 1.44 +2 -1 src/sys/kern/vnode_if.src 1.3 +2 -1 src/sys/security/lomac/lomacfs_vnops.c 1.8 +6 -6 src/sys/sys/extattr.h 1.42 +31 -20 src/sys/ufs/ufs/ufs_extattr.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message