From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aneesh Kumar K. V" Subject: Re: [PATCH -V18 04/13] vfs: Allow handle based open on symlinks Date: Fri, 20 Aug 2010 12:23:32 +0530 Message-ID: References: <1282269097-26166-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1282269097-26166-5-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, sfrench@us.ibm.com, philippe.deniel@CEA.FR, linux-kernel@vger.kernel.org To: hch@infradead.org, viro@zeniv.linux.org.uk, adilger@sun.com, corbet@lwn.net, neilb@suse.de, hooanon05@yahoo.co.jp, bfields@fieldses.org, miklos@szeredi.hu Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Fri, 20 Aug 2010 07:43:12 +0530, "Aneesh Kumar K. V" wrote: > On Fri, 20 Aug 2010 07:21:28 +0530, "Aneesh Kumar K.V" wrote: > > The patch update may_open to allow handle based open on symlinks. > > The file handle based API use file descritor returned from open_by_handle_at > > to do different file system operations. To find the link target name we > > need to get a file descriptor on symlinks. > > > > We should be able to read the link target using file handle. The exact > > usecase is with respect to implementing READLINK operation on a > > userspace NFS server. The request contain the file handle and the > > response include target name. > > > > If we don't do this, we will need new syscalls for doing stat, readlink > and link on symlinks that take file handle as the argument. If that is ok, > I can redo the patch series accordingly. > This ended up with the below new syscalls sys_handle_readlink, sys_handle_stat64, sys_handle_link, sys_handle_chown, sys_handle_setxattr, sys_handle_getxattr, sys_handle_listxattr, sys_handle_removexattr, sys_handle_utimes, compat_sys_handle_utimes -aneesh