From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: *at syscalls for xattrs? Date: Mon, 16 Jul 2007 13:40:23 -0700 Message-ID: <469BD7B7.30009@zytor.com> References: <20070715205313.GE21668@ftp.linux.org.uk> <1184534001.2765.5.camel@entropy> <20070715222323.GG21668@ftp.linux.org.uk> <469B2CAE.9010101@goop.org> <469B3B73.9010400@zytor.com> <469B3EC2.8080702@garzik.org> <469BB190.1080300@zytor.com> <469BCF0C.6070109@garzik.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Miklos Szeredi , jeremy@goop.org, jengelh@computergmbh.de, viro@ftp.linux.org.uk, nmiell@comcast.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Jeff Garzik Return-path: Received: from terminus.zytor.com ([198.137.202.10]:36150 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753365AbXGPUoG (ORCPT ); Mon, 16 Jul 2007 16:44:06 -0400 In-Reply-To: <469BCF0C.6070109@garzik.org> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Jeff Garzik wrote: >> >> Well, as Jeremy pointed out, in the absence of threads you can do the >> same thing with fchdir(), however, that's much more of a hack. > > My posixutils project (coreutils replacement) used fchdir(2), but that > still doesn't get you 100% race-free. It gets you close, yes. > I guess you're horked in the case where a single system call (e.g. rename()) needs more than one pathname. Yet another reason why a single cwd isn't enough. -hpa