[nfsv4] Re: question about delegated timestamps (delstid draft)
Thomas Haynes <loghyr@gmail.com> Tue, 10 September 2024 16:53 UTC
Return-Path: <loghyr@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 B7010C1840D0; Tue, 10 Sep 2024 09:53:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] 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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Iqcs_Fo-_LrI; Tue, 10 Sep 2024 09:53:50 -0700 (PDT)
Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1C977C1CAE85; Tue, 10 Sep 2024 09:53:50 -0700 (PDT)
Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-718e1ce7e84so2807287b3a.1; Tue, 10 Sep 2024 09:53:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725987229; x=1726592029; darn=ietf.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=QczxGk6ohRS79XYAtdgxUTQopLLGkdPvUhC4TFXYkmI=; b=dTI0uY7/AfjOs2GWwGlzW0nzfU/J8I/EcRSzNx9VzUhB1b8hkmEooYQ36+ExJ5EO34 bzXgE1H0jmbGzgG0rz3WOGhvh2LcTVciHEgYGVI7BXdGO/eGeXTyawTQZLQIe/mDylYE D5DtDfoqpbvvHUxa/CiunC/sUGdHwbrMFw7aw2ddysTmoLheDGIXykyK3Kto41dNFf+U kOfT8vO4ir0aHH+yKyW7Bd19l1C9k+/WxmI8o7Q7iE+Pr87vcAgT0FGC+5dPfPGKeAzb 2tR13PJfO/WQEbnAI5ms3LvGwRQ1xTB2ktWJ5ycIp911MkLFLAOVolSSKJjDFEYGZFkY C5AA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725987229; x=1726592029; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QczxGk6ohRS79XYAtdgxUTQopLLGkdPvUhC4TFXYkmI=; b=O1BmLOEHCqj0gKrn0Wf9UqPfkzqpWlcSeMwjX+BsACM/iYBlQ/pe6C7/+naMW8vUsn kDb0WMbSlZ7mTOGMZPVnIV7J2GpP3Vf6J0U0jtviOhgKfb/oEZfIA+bJRPLjseGEgY17 U99QazT7VAlV9bFrl6KQF0G/s6Dt1PykePimXf0GYmeENzLtCrjqlCtTU7K8wrh9qRsR jF944ksRurvlxzMTXVwTTo5lzfmQnKDQQi58c0DHIa24xUuOwCHxzjC/TY50nWNYXb6k B6MMdQo1BlAhiP4MFbljLCp+7HB/cxBzpiPSoxnpZTQitUYwMDGRrWc77ScC90NKbV7g Iqog==
X-Forwarded-Encrypted: i=1; AJvYcCVV5wSTznTFxB7dd311XlguO9YML68fIx7BtFPMnwbrbkuBV2M6BK7UvF1RjwAstZkyarezbA==@ietf.org
X-Gm-Message-State: AOJu0Yy02TMZfxNyh8dYZ7lU/lw2ScRHpVT98uj/2oLEQrL1JG3FDqQW tGoZczHoXa+OLhBlwV2vIA2zDHYRmYp3aRtcK5Lp6Nn8AkH+kCZs9hZvzA==
X-Google-Smtp-Source: AGHT+IFs+nbG6Bz2Nz0yyl5xqN7WTeCsFOVWu4xGv5Twxf5YG680t+F1GYxlJeSPTxncMe3chTZAJQ==
X-Received: by 2002:a05:6a21:2fc7:b0:1cf:4ad8:83b9 with SMTP id adf61e73a8af0-1cf5e1768abmr1624238637.43.1725987229161; Tue, 10 Sep 2024 09:53:49 -0700 (PDT)
Received: from smtpclient.apple ([2601:647:4500:91:a50f:676d:bfcb:bcb6]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71908fc9c89sm1589569b3a.33.2024.09.10.09.53.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Sep 2024 09:53:48 -0700 (PDT)
From: Thomas Haynes <loghyr@gmail.com>
Message-Id: <00BADC5E-3656-4BE7-83D7-7948DBEB8AAC@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_188A39F3-1C10-428B-AE96-835A5A760107"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\))
Date: Tue, 10 Sep 2024 09:53:37 -0700
In-Reply-To: <289bb51d7df25640bfbf5881c8c5ccde7ffc0ede.camel@poochiereds.net>
To: Jeff Layton <jlayton@poochiereds.net>
References: <0fc24e8a75423febc31cf373db995deb99b47a7b.camel@poochiereds.net> <F784F7B7-AECE-40BE-97EE-17D5F8BB22CC@gmail.com> <cef9752f814b692c82b1a0eafeb453ca615c0f00.camel@poochiereds.net> <89B7F076-719F-4701-806E-C533EC6AFA9F@gmail.com> <289bb51d7df25640bfbf5881c8c5ccde7ffc0ede.camel@poochiereds.net>
X-Mailer: Apple Mail (2.3776.700.51)
Message-ID-Hash: OMR4W4OT4GUGJXH7J2CDFK2HLPFWJM7P
X-Message-ID-Hash: OMR4W4OT4GUGJXH7J2CDFK2HLPFWJM7P
X-MailFrom: loghyr@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-nfsv4.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: draft-ietf-nfsv4-delstid.all@ietf.org, NFSv4 <nfsv4@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [nfsv4] Re: question about delegated timestamps (delstid draft)
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/r4WamMnzz58uRJGP7cm8Hu_KmZU>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Owner: <mailto:nfsv4-owner@ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Subscribe: <mailto:nfsv4-join@ietf.org>
List-Unsubscribe: <mailto:nfsv4-leave@ietf.org>
> On Sep 10, 2024, at 9:22 AM, Jeff Layton <jlayton@poochiereds.net> wrote: > > On Tue, 2024-09-10 at 09:02 -0700, Thomas Haynes wrote: >> >>> On Aug 29, 2024, at 5:42 AM, Jeff Layton <jlayton@poochiereds.net> wrote: >>> >>> On Wed, 2024-08-28 at 15:34 -0700, Thomas Haynes wrote: >>>> >>>>> On Aug 28, 2024, at 10:13 AM, Jeff Layton <jlayton@poochiereds.net> wrote: >>>>> >>>>> The draft says mentions this: >>>>> >>>>> Further, when it gets a SETATTR in the same compound as the >>>>> DELEGRETURN, then it MUST accept those fattr4_time_deleg_access >>>>> attribute and fattr4_time_deleg_modify attribute changes and derive >>>>> the change time or reject the changes with NFS4ERR_DELAY (see >>>>> Section 15.1.1.3 of [RFC8881]). >>>>> >>>>> Presumably, the SETATTR will precede the DELEGRETURN in the compound, >>>>> in which case (at least under Linux kernel server) we will not have >>>>> vetted the DELEGRETURN stateid yet. >>>>> >>>>> The simplest fix might be to just have it accept SETATTR for the >>>>> delegated atime and mtime iff the client is the owner of the write >>>>> delegation. >>>>> -- >>>>> Jeff Layton <jlayton@poochiereds.net> >>>> >>>> >>>> Looking at the HS implementation, we do just that, we accept it if the client is the owner of the WRITE delegation. >>>> >>>> I.e., we do not insist that there is a DELEGRETURN. >>> >>> Thanks for confirming it. Maybe we should update the draft along those >> >>> lines too? Have it say that the SETATTR that sends these new attrs must >>> contain a WRITE delegation stateid, and drop the language about having >>> a DELEGRETURN in the compound? >>> >>> -- >>> Jeff Layton <jlayton@poochiereds.net> >> >> >> Hey Jeff, >> >> Work interfered, so just now getting back to this. >> >> The next paragraph in the draft states: >> >> These new attributes are invalid to be used with GETATTR, VERIFY, and >> NVERIFY and can only be used with CB_GETATTR and SETATTR by a client >> holding an appropriate delegation. The SETATTR SHOULD either be in a >> separate compound before the one containing the DELEGRETURN or when >> in the same compound, as an operation before the DELEGRETURN. >> Failure to properly sequence the operations may lead to race >> conditions. >> >> Why can’t it send a SETATTR in the same compound as the DELEGRETURN? >> > > Oh, it absolutely can. When I read the paragraph, I took it as if the > server had to accept those attrs if there was a DELEGRETURN in the same > compound. > > Maybe I'm just being pedantic, but I don't think we want to allow read > delegation holders to do this, just because they happen to be returning > the deleg in the same compound. > >> I guess I would rewrite the paragraph you quote as simply: >> >> Further, when it gets a SETATTR with those attributes being set, then it MUST accept those fattr4_time_deleg_access >> attribute and fattr4_time_deleg_modify attribute changes and derive >> the change time or reject the changes with NFS4ERR_DELAY (see >> Section 15.1.1.3 of [RFC8881]). >> > > I think you just want to make it clear that the only client that can > set these attrs is the one holding the write delegation. It already says: These new attributes are invalid to be used with GETATTR, VERIFY, and NVERIFY and can only be used with CB_GETATTR and SETATTR by a client holding an appropriate delegation. This might be the case that the information is too spread out and that I am too close to the draft. > -- > Jeff Layton <jlayton@poochiereds.net <mailto:jlayton@poochiereds.net>>
- [nfsv4] question about delegated timestamps (dels… Jeff Layton
- [nfsv4] Re: question about delegated timestamps (… Jeff Layton
- [nfsv4] Re: question about delegated timestamps (… Jeff Layton
- [nfsv4] Re: question about delegated timestamps (… Thomas Haynes
- [nfsv4] Re: question about delegated timestamps (… Jeff Layton
- [nfsv4] Re: question about delegated timestamps (… Thomas Haynes
- [nfsv4] Re: question about delegated timestamps (… Jeff Layton
- [nfsv4] Re: question about delegated timestamps (… Thomas Haynes
- [nfsv4] Re: question about delegated timestamps (… Jeff Layton
- [nfsv4] Re: question about delegated timestamps (… Thomas Haynes