Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3583787imw; Mon, 11 Jul 2022 11:23:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1umxwanB5HMAAdafXngF6bUL1TUdMQZzzM2M+WYSnmVsxzp5MoVFKhgb3HKd8pYUf4ENVrk X-Received: by 2002:a17:907:3d86:b0:72b:4b25:1031 with SMTP id he6-20020a1709073d8600b0072b4b251031mr8466377ejc.536.1657563816355; Mon, 11 Jul 2022 11:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657563816; cv=none; d=google.com; s=arc-20160816; b=KwlnJ36BhzzSvQDcaeSURCtQW8Y3iJtEpVotZ1AcR86MTvvr1tCkFPV3ltCWgxnDj7 Ec4rFi5qguwc1usz14+EEf2jx8Z0DjPYp6slvSGz2azHS5uJDbFuEmJSdyFJD/IaG5W2 fGU+R+FtaKk2z7FkFtKnOoCaOGDFMn3RdTmrRM9uJUIyeHeyQyzjeAfbTkPocVPdDT+Z AqnsmvZVZxix3GZvj/w7IHXgHW06r9Of+Rlq0mexewrJOTgIk4YMMFWsvmS73ivM3fYz P3npZP/uB0wBpsi8CaFdANPLf3jEZCmZyG0bxgenqsN0NimuiMmvYmZkm/18BomeOmXN 0OmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=yTN1iMuS7W4RZG3D9DAoI8ysBN7jOP71+Dr669dLx6k=; b=zOqFAIBtIhw8HmJuJnShVFy1iMJL0oh4gbgiyr672OtfPbG2FMhF6XM/jjLcq8uTEJ O6cnYkR9h1nAp4wCeIFXT5ZoEyrlApmatfQ8JLWSmHsH+EZ3P0kTvvjzTGa0eV45H6Il eDHAFw1CAsUvoA5fCPjL9L/dobpa/fSl4ReAj7i4BctzfVap5W3hDORSneAlZXr79aD7 N2jZu4dZP+NDqLYb8LnbMs7+VKtLqAC0bVGN6Ze3H8VsJnzH6laxrLwuqRkjnQ3axjMb xfbXtwCQkZglmDuTJuPnOGUL0Ti13b13Mf91Urv5SL1HzYzBQ8tRRJimjtoV73FpCVvT TPiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=whT6OMpO; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fieldses.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb31-20020a1709071c9f00b0072b61694e92si3437983ejc.350.2022.07.11.11.23.10; Mon, 11 Jul 2022 11:23:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=whT6OMpO; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fieldses.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229638AbiGKSTr (ORCPT + 99 others); Mon, 11 Jul 2022 14:19:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbiGKSTq (ORCPT ); Mon, 11 Jul 2022 14:19:46 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5128F2A72A; Mon, 11 Jul 2022 11:19:42 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id A37A0612F; Mon, 11 Jul 2022 14:19:41 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org A37A0612F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1657563581; bh=yTN1iMuS7W4RZG3D9DAoI8ysBN7jOP71+Dr669dLx6k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=whT6OMpOCB9/xvdcePS2enz3qvMMzSekD13C49qtEy9SLe9loGnS6Sxd4xRhU6kQE zI2YUiYDZjBXQWZsJdjgV/ppATgx8ZFV1f5+PMRJPAJEjP/P9wxwZNEo14lDlUHqR5 cieZNu8Zyls4rCyVgLhl3pPNWGancK8jibGMNWOo= Date: Mon, 11 Jul 2022 14:19:41 -0400 From: Bruce Fields To: Jeff Layton Cc: Chuck Lever III , Igor Mammedov , Linux NFS Mailing List , Ondrej Valousek , Linux Kernel Mailing List , Linus Torvalds Subject: Re: [GIT PULL] nfsd changes for 5.18 Message-ID: <20220711181941.GC14184@fieldses.org> References: <20220710124344.36dfd857@redhat.com> <5268baed1650b4cba32978ad32d14a5ef00539f2.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5268baed1650b4cba32978ad32d14a5ef00539f2.camel@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Jul 11, 2022 at 06:33:04AM -0400, Jeff Layton wrote: > On Sun, 2022-07-10 at 16:42 +0000, Chuck Lever III wrote: > > > This patch regressed clients that support TIME_CREATE attribute. > > > Starting with this patch client might think that server supports > > > TIME_CREATE and start sending this attribute in its requests. > > > > Indeed, e377a3e698fb ("nfsd: Add support for the birth time > > attribute") does not include a change to nfsd4_decode_fattr4() > > that decodes the birth time attribute. > > > > I don't immediately see another storage protocol stack in our > > kernel that supports a client setting the birth time, so NFSD > > might have to ignore the client-provided value. > > > > Cephfs allows this. My thinking at the time that I implemented it was > that it should be settable for backup purposes, but this was possibly a > mistake. On most filesystems, the btime seems to be equivalent to inode > creation time and is read-only. So supporting it as read-only seems reasonable. Clearly, failing to decode the setattr attempt isn't the right way to do that. I'm not sure what exactly it should be doing--some kind of permission error on any setattr containing TIME_CREATE? --b.