From owner-cvs-all Sat Mar 31 8:20:13 2001 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 355C037B71D; Sat, 31 Mar 2001 08:20:06 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Received: (from rwatson@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2VGK6Z29105; Sat, 31 Mar 2001 08:20:06 -0800 (PST) (envelope-from rwatson) Message-Id: <200103311620.f2VGK6Z29105@freefall.freebsd.org> From: Robert Watson Date: Sat, 31 Mar 2001 08:20:06 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern syscalls.master vfs_syscalls.c src/sys/sys extattr.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG rwatson 2001/03/31 08:20:06 PST Modified files: sys/kern syscalls.master vfs_syscalls.c sys/sys extattr.h Log: o Introduce extattr_{delete,get,set}_fd() to allow extended attribute operations on file descriptors, which complement the existing set of calls, extattr_{delete,get,set}_file() which act on paths. In doing so, restructure the system call implementation such that the two sets of functions share most of the relevant code, rather than duplicating it. This pushes the vnode locking into the shared code, but keeps the copying in of some arguments in the system call code. Allowing access via file descriptors reduces the opportunity for race conditions when managing extended attributes. Obtained from: TrustedBSD Project Revision Changes Path 1.87 +9 -1 src/sys/kern/syscalls.master 1.187 +214 -75 src/sys/kern/vfs_syscalls.c 1.6 +14 -9 src/sys/sys/extattr.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message