From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Brown Subject: Re: + knfsd-exportfs-add-exportfsh-header-fix.patch added to -mm tree Date: Thu, 17 May 2007 14:26:56 +1000 Message-ID: <17995.55696.89329.396629@notabene.brown> References: <17995.40009.645694.142225@notabene.brown> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: akpm@linux-foundation.org, hch@infradead.org, Christoph Hellwig , linux-fsdevel@vger.kernel.org To: Steven French Return-path: Received: from ns1.suse.de ([195.135.220.2]:55135 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752276AbXEQE1Q (ORCPT ); Thu, 17 May 2007 00:27:16 -0400 In-Reply-To: message from Steven French on Wednesday May 16 Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org >On Wednesday May 16, sfrench@us.ibm.com wrote: > > If CIFS provides some fix-length identifier for files, then > > you might be able to do it > > Most CIFS servers (Windows on NTFS, Samba etc.) can return a "unique > identifier" (a 64 bit inode number), in conjunction with the volume id, > that is probably good enough ... right? This can be returned on various > calls (level 0x03EE "file_internal_info" - returns only this number). If > reverse lookup is required - ie given a "unique identifier" what is its > path name - there are probably a few different ways to handle this but > presumably local filesystems run into the same issue. Yes, that "unique identifier" sounds like it would be suitable to put in the filehandle. But reverse lookup is definitely required. Providing you can turn this into a 'struct inode *' in the filesystem, the code in exportfs/ can help turn that into a fully connected dentry. NeilBrown