Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756601AbYLVXVh (ORCPT ); Mon, 22 Dec 2008 18:21:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755384AbYLVXV3 (ORCPT ); Mon, 22 Dec 2008 18:21:29 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:58606 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755273AbYLVXV2 (ORCPT ); Mon, 22 Dec 2008 18:21:28 -0500 Date: Mon, 22 Dec 2008 18:21:25 -0500 From: Christoph Hellwig To: "C. Scott Ananian" Cc: Al Viro , Eric Paris , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH -v4 00/14] fsnotify, dnotify, and inotify Message-ID: <20081222232125.GA25334@infradead.org> References: <20081212213915.27112.57526.stgit@paris.rdu.redhat.com> <1229916126.29604.47.camel@localhost.localdomain> <20081222210410.GL28946@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 712 Lines: 18 On Mon, Dec 22, 2008 at 06:08:08PM -0500, C. Scott Ananian wrote: > That's not correct, as /proc/self/fd/ and the getcwd syscall make > clear. No. These take a file descriptor into account, which _does_ have a unique path. > struct inode has a i_dentry member, and via its d_parent links > you can reconstruct the path, as __d_path in fs/dcache.c does. reconstruct _a_ path inside the same filesystem, ignoring which link is wanted, and inside which mount. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/