From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH -V7 3/9] vfs: Add name to file handle conversion support Date: Fri, 14 May 2010 19:40:44 +0100 Message-ID: <20100514184044.GV30031@ZenIV.linux.org.uk> References: <20100513084310.5212728b@notabene.brown> <871vdg2ulx.fsf@linux.vnet.ibm.com> <20100513171114.1629086b@notabene.brown> <51B2B398-99A7-43BF-A074-ACFBBA318DF7@oracle.com> <8739xvevbw.fsf@linux.vnet.ibm.com> <878w7n1xb3.fsf@linux.vnet.ibm.com> <20100514172510.GU30031@ZenIV.linux.org.uk> <87d3wye49b.fsf@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andreas Dilger , Neil Brown , Christoph Hellwig , Jonathan Corbet , Serge Hallyn , linux-fsdevel@vger.kernel.org, Steven French , Philippe Deniel , "linux-kernel@vger.kernel.org Mailinglist" To: "Aneesh Kumar K. V" Return-path: Content-Disposition: inline In-Reply-To: <87d3wye49b.fsf@linux.vnet.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Fri, May 14, 2010 at 11:48:24PM +0530, Aneesh Kumar K. V wrote: > How about > sys_open_by_handle(int mountdirfd, > struct file_handle __user *ufh, int open_flag) > > and we validate the UUID present in the file_handle by using mountdirfd > vfsmount. In otherwords we drop the UUID based vfsmount lookup, But > still add UUID as a part of file handle ? IDGI. If you have decided upon the mountdirfd, why bother with rechecking? You still need to handle the case when fs tells you to take a hike because fileid was invalid. What does duplicate uuid check in the kernel buy you?