From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (unknown [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 7ADFC7F3F for ; Tue, 13 Jan 2015 14:38:51 -0600 (CST) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay3.corp.sgi.com (Postfix) with ESMTP id A9389AC009 for ; Tue, 13 Jan 2015 12:38:35 -0800 (PST) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by cuda.sgi.com with ESMTP id YlYOGA8rFfdeqFUR for ; Tue, 13 Jan 2015 12:27:36 -0800 (PST) Date: Mon, 12 Jan 2015 14:04:01 +1100 From: Dave Chinner Subject: Re: [PATCH 17/18] xfs: implement pnfs export operations Message-ID: <20150112030401.GA29484@destitution> References: <1420561721-9150-1-git-send-email-hch@lst.de> <1420561721-9150-18-git-send-email-hch@lst.de> <20150107002434.GG31508@dastard> <20150107104010.GD28783@lst.de> <20150107211140.GC25000@dastard> <20150108124327.GA15222@lst.de> <20150108210405.GG25000@dastard> <20150109114159.GA25728@lst.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20150109114159.GA25728@lst.de> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Christoph Hellwig Cc: "J. Bruce Fields" , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, Jeff Layton , xfs@oss.sgi.com On Fri, Jan 09, 2015 at 12:41:59PM +0100, Christoph Hellwig wrote: > On Fri, Jan 09, 2015 at 08:04:05AM +1100, Dave Chinner wrote: > > > If the client sends the opaqueue device ID that contains the generation > > > after the grow to a server that had crashed / restarted the server > > > will reject it as the server starts at zero. The causes the client > > > to get a new, valid device ID from the server. > > > > But if the server fs has a generation number of zero when it > > crashes, how does the client tell that it needs a new device ID from > > the server? > > > > > Unlike the NFS file hadles which are persistent the device IDs are volatile > > > handles that can go away (and have really horrible life time rules..). > > > > Right. How the clients detect that "going away" when the device > > generation is zero both before and after a server crash is the > > question I'm asking.... > > The server tells the client by rejecting the operation using the > device ID. Ok, so: client server get layout dev id == 0 grow gen++ (=1) crash .... gen = 0 (initialised after boot) commit layout dev id == 0 server executes op, even though device has changed.... What prevents this? Shouldn't the server be rejecting the commit layout operation as there was a grow operation between the client operations? Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs