Return-Path: Received: from fieldses.org ([173.255.197.46]:52720 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752046AbdF3Ri3 (ORCPT ); Fri, 30 Jun 2017 13:38:29 -0400 Date: Fri, 30 Jun 2017 13:38:18 -0400 From: "bfields@fieldses.org" To: Trond Myklebust Cc: hch , "jlayton@poochiereds.net" , "linux-nfs@vger.kernel.org" , "schumaker.anna@gmail.com" Subject: Re: open by handle support for NFS V2 Message-ID: <20170630173818.GC14868@fieldses.org> References: <20170629133453.19641-1-hch@lst.de> <20170629154650.GC1651@fieldses.org> <1498842056.6728.1.camel@primarydata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1498842056.6728.1.camel@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Fri, Jun 30, 2017 at 05:00:59PM +0000, Trond Myklebust wrote: > The main use case for open by filehandle was (and still should be) the > promise of being able to do the sort of tricks you normally associate > with object storage on a standard filesystem. > > Imagine that you are trying to build an application for indexing and > searching the data on your storage. You basically want to trawl through > the filesystem on a regular basis and build up a database of key words > and other metadata to tell you what is in the files. For that kind of > application, the namespace is a real PITA to deal with, because files > get renamed, moved and deleted all the time; so if you can store > something that is independent of the namespace and that will give you > access to the file contents, then why wouldn't you do so? Normally, > applications like that use the inode number, but you can't open a file > by inode number, and you have the same problems with inode number reuse > that a NFS server has. > > That's the sort of thing I'd think we want to allow through open by > filehandle, and I see no reason why NFS should be excluded from that > type of application. Thanks, that makes sense. We've had open_by_handle support for most filesystems since 2011, is there evidence of anyone doing this? --b.