Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754181Ab2HTTkp (ORCPT ); Mon, 20 Aug 2012 15:40:45 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:63050 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753900Ab2HTTkm (ORCPT ); Mon, 20 Aug 2012 15:40:42 -0400 Date: Mon, 20 Aug 2012 23:40:38 +0400 From: Cyrill Gorcunov To: "J. Bruce Fields" Cc: "Aneesh Kumar K.V" , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Al Viro , Alexey Dobriyan , Andrew Morton , Pavel Emelyanov , James Bottomley , Matthew Helsley Subject: Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper Message-ID: <20120820194038.GA10402@moon> References: <20120815092116.700948346@openvz.org> <20120815092409.591460800@openvz.org> <87fw7habo4.fsf@skywalker.in.ibm.com> <20120820163338.GN23596@moon> <20120820183225.GB4911@fieldses.org> <20120820190606.GE27443@moon> <20120820193204.GD5779@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120820193204.GD5779@fieldses.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1267 Lines: 29 On Mon, Aug 20, 2012 at 03:32:04PM -0400, J. Bruce Fields wrote: > > > > Hi, sorry for dealy. Well, the last idea is to get rid of this helper, > > > > I've sent out an updated version where ino+dev is only printed. > > > > > > I don't understand how ino and dev are useful to you, though, if you're > > > still hoping to be able to look up inodes using this information later > > > on. > > > > Hi Bruce, I believe having ino+dev is better than nothing. Otherwise we > > simply have no clue which targets are bound to inotify mark. Sometime > > (!) we can try to generate fhandle in userspace from this ino+dev bundle > > and then open the target file. > > That's insufficient to generate a filehandle in general. That's why I said `sometime', and this is better than nothing. > (Also: there's the usual inode-number aliasing problem: the inode number > could get reused by another file. Unless you know the file is being > held open the whole time.) For c/r session inode should exist and not get reused. Cyrill -- 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/