Date: Sat, 31 Mar 2001 08:20:06 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> 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 Message-ID: <200103311620.f2VGK6Z29105@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103311620.f2VGK6Z29105>