Return-Path: Received: from e32.co.us.ibm.com ([32.97.110.150]:40495 "EHLO e32.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752544Ab1HOUuW (ORCPT ); Mon, 15 Aug 2011 16:50:22 -0400 Received: from d03relay01.boulder.ibm.com (d03relay01.boulder.ibm.com [9.17.195.226]) by e32.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p7FJeBCj004274 for ; Mon, 15 Aug 2011 13:40:11 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p7FKn34s119008 for ; Mon, 15 Aug 2011 14:49:03 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p7FEn2Vg029053 for ; Mon, 15 Aug 2011 08:49:02 -0600 Received: from malahal ([9.47.25.235]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p7FEn1S1028983 for ; Mon, 15 Aug 2011 08:49:01 -0600 Date: Mon, 15 Aug 2011 13:49:00 -0700 From: Malahal Naineni To: linux-nfs@vger.kernel.org Subject: Re: State of NFSv4 VolatileFilehandles Message-ID: <20110815204900.GA12542@us.ibm.com> References: <4E37E66D.90102@linux.vnet.ibm.com> <45F4FC20-ED44-4430-A5A9-E06459A194F3@oracle.com> <4E38F894.4070003@linux.vnet.ibm.com> <2E1EB2CF9ED1CB4AA966F0EB76EAB4430A778B9B@SACMVEXC2-PRD.hq.netapp.com> <20110804082311.21b7e73a@notabene.brown> Content-Type: text/plain; charset=us-ascii In-Reply-To: <20110804082311.21b7e73a@notabene.brown> Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 NeilBrown [neilb@suse.de] wrote: > > POSIX allows the namespace to change at any time (rename() or unlink()) > > and so you cannot rely on addressing files by pathname. That was the > > whole reason for introducing filehandles into NFSv2 in the first place. > > > > Volatile filehandles were introduced in NFSv4 without any attempt to fix > > those shortcomings. There is no real prescription for how to recover in > > a situation where a rename or unlink has occurred prior to the > > filehandle expiring. Nor is there a reliable prescription for dealing > > with the case where a new file of the same name has replaced the > > original. > > Basically, the implication is that volatile filehandles are only really > > usable in a situation where the whole Filesystem is read-only on the > > server. > > I substantially agree, though I think the implication can be refined a little. > > I would say that the implication is that a VFH is only really usable when the > complete path leading to the file in question is read-only. We don't need > to assume that other files in other parts of the hierarchy which have stable > file handles are read-only. The spec recommends "change" attribute for validating data cache, name cache, etc. Some client implementations use "change" attribute for validating VFH though! Can we use it for validating VFH? Thanks, Malahal.