Re: [nfsv4] RFC 7530: Filehandle of opened file after the REMOVE

Trond Myklebust <trondmy@gmail.com> Sun, 01 January 2017 23:36 UTC

Return-Path: <trondmy@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A537012951C for <nfsv4@ietfa.amsl.com>; Sun, 1 Jan 2017 15:36:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lnyp2XYg6lpi for <nfsv4@ietfa.amsl.com>; Sun, 1 Jan 2017 15:36:12 -0800 (PST)
Received: from mail-oi0-x241.google.com (mail-oi0-x241.google.com [IPv6:2607:f8b0:4003:c06::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 49D40129519 for <nfsv4@ietf.org>; Sun, 1 Jan 2017 15:36:12 -0800 (PST)
Received: by mail-oi0-x241.google.com with SMTP id f201so64785417oib.0 for <nfsv4@ietf.org>; Sun, 01 Jan 2017 15:36:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vZ4RWCXsIYHybqNpCeqVKiZ+FZWVeJivfRxKMul+3qs=; b=H+/LlD4CJuWhWrTsFvgiHcxwhshFqhVo0CanaJRDtTilYZO3Yc6Tx92V2o9d4j154f 0i3+p9r3LJMWBCnY1akcWppYFFQtwcZLyqMXqtJhTrJw5qH2PeQ5v/j/TZE+C6yOZ1cy 9WERfJaVBCTV09rtb9W7C2SdKZvAQnXT5cSv6GXaTgn9/nM4aDiru+BoI8vt83WOhkDj xovqtM85VdjMGfr+zwHtDD+2O60dtmRpbdS/idgnANe/4aclVaZqhioESjnbqnUczW7o mmHIFKA3VYzC5jBwGorkvmk7e6w1gDy1i+fb5+UnwWD/x0noyYY0DgFRhB0j8RyW+TDp FJmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vZ4RWCXsIYHybqNpCeqVKiZ+FZWVeJivfRxKMul+3qs=; b=GEXbsrZ04v4WBNoWXkHv6pyovL/w49lsFV/g0JDu6oU0iQNQWfzNcTcoQYoLVc13Rj Fgljr5zygwLW5KiZcPQWFmsQmUgYXHFsdqU6BjTuU4+F+eIF0s3eTq28igZVHPxs49Vs CJ2DiSt+ifSpvX+HlBdSjeCb+fjP6+siNlfefTTXfx8UfopRt6ekFcdVNBDyqi+riTw5 Iq/NLkWQgVsj3FzFVO4YPcBb8O2rvm1T9n3LdsUkqgyNUT8+9X+s+kn7djPLZd8dGCjG 1BZ+6I0PvZYMS5IIOAI2vPJ+Gdv8GJV2Aqj+GmZIvEvIKoskOv78KaXGaSk16cw04xyV YHsA==
X-Gm-Message-State: AIkVDXJrofRebY2p+wSC3Yl7UP7bHbW8OtiFt2rn/iyvIZVsiMfiZlKR4zjyBhTOEaGcYYyRRN68yb4fZt/R8Q==
X-Received: by 10.202.231.132 with SMTP id e126mr24581712oih.72.1483313771697; Sun, 01 Jan 2017 15:36:11 -0800 (PST)
MIME-Version: 1.0
Received: by 10.157.6.129 with HTTP; Sun, 1 Jan 2017 15:36:10 -0800 (PST)
In-Reply-To: <YTXPR01MB01893591AC828FB15E2D8C4CDD6C0@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM>
References: <20161213171902.Horde.MkS1YMOM6VpxA0Z7rSMTe7P@mail.telka.sk> <CAABAsM5L0xdKodxk1dRSugLyROzn2JzgDkq6kdHE0LuGcfh++A@mail.gmail.com> <20161213181734.Horde.EqgB09El8rupnkesIQaBwJ3@mail.telka.sk> <CADaq8jcq2C0o8EWXoGjxDn58sV_J+-SP-=rj934Se-DV69b-pw@mail.gmail.com> <20161214112112.Horde.aPh8AjT6iWRl37CULwihyV7@mail.telka.sk> <CAABAsM7v6y0bsb0jKzfvobkUjniTLhM3uv8FYjo07HcLD2004w@mail.gmail.com> <20161227144414.GA32002@fieldses.org> <CADaq8jck14SKL6Ua9QxbqPyX1=1aaA7+76wv-__EWFvh7ZcEJA@mail.gmail.com> <C496AE44-0F27-4B66-A1F6-A76AEAFD7A90@gmail.com> <20161229024703.GA21325@fieldses.org> <20161229074830.GA3002@lst.de> <CADaq8jd__SJHP-4aJPbW9GscKRc6cwSe26VYt3w_GPcpuN3QHQ@mail.gmail.com> <c5251671-2408-eb7e-69ab-7b4eeda35f03@talpey.com> <YTXPR01MB01893591AC828FB15E2D8C4CDD6C0@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM>
From: Trond Myklebust <trondmy@gmail.com>
Date: Mon, 2 Jan 2017 00:36:10 +0100
Message-ID: <CAABAsM5g8Y_vPMC5Kyc9s7zErw-7CydKNf4V_-qbUjjP=_yS5A@mail.gmail.com>
To: Rick Macklem <rmacklem@uoguelph.ca>
Content-Type: multipart/alternative; boundary=001a1141c40073dcc7054510e606
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/M1z29CVgSQMlv3gznZAv2sIrNPo>
Cc: Tom Talpey <tom@talpey.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] RFC 7530: Filehandle of opened file after the REMOVE
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Jan 2017 23:36:13 -0000

On 2 January 2017 at 00:19, Rick Macklem <rmacklem@uoguelph.ca> wrote:

> Tom Talpey wrote:
> On 1/1/2017 8:13 AM, David Noveck wrote:
> > Btw, my preferred title for such a document, almost certain to be
> > rejected, is "Silly Rename Must Die" :-)
> Actually replying to a random thread, mostly Dave's...
>
> A case that I wasn't clear on w.r.t. this is:
> - The client holds a delegation for the file.
> - The client issues opens locally w.r.t. this delegation.
> - A process/thread on the client does a "Remove" of the file.
>
> Is the client expected to acquire Opens against the server and return the
> Delegation? (This seems like more work than just doing good old
> sillyrename?)
> - Or does a Delegation have the same effect as an Open against the file on
> the
>   server.
>

If you read RFC7530, then the client is expected to return the delegation
before doing any form of RENAME or REMOVE, since the server has no stateid
or session id with which to identify the origin of the RPC call.

It is less obvious that this needs be the case for NFSv4.x (x>0), but I
can't remember seeing any changes to those texts in RFC5661.

Cheers
  Trond