Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp12979rwr; Thu, 4 May 2023 14:03:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5UByecOro7Z1powjw+bhaxXi1o2iMrXSM+cOW7M7r++pZqHlXP4w/RLFTLtfi0Jbk4yIfm X-Received: by 2002:a05:6a20:1609:b0:fa:4fc6:79ab with SMTP id l9-20020a056a20160900b000fa4fc679abmr3886228pzj.11.1683234236657; Thu, 04 May 2023 14:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683234236; cv=none; d=google.com; s=arc-20160816; b=v+8QyXw+Op86pFA3bfhdc5W8HL3Xv3DyOgFcKtCKNiR9yNrRWDVQ5eE2ab4Xq72RVT jGvYJYAz9VVUF0qS04bbaUbPjlc0wcs6Zqyiu4uR3w86FcZ+TK+5X3bh1TzPz2OdfV/T w8DFViprXugdTlUBAcgJOElmMwjgyHZpsRTsdgWJQBoAcWwe7h60qTS/00CW33lVKqHi s0dTlwGVqzugTCFZb6LxlvMCXDZkB1UtzgXjaqVU7O8gyM6Iaoo2gpWTCQFxj1lJV+5x 0umEeoIwRkPTVUQNop2qTSK/I2ny3SJpWLMMr9LuyeenktvZR25YRzlJmCtSTl8MbYoe JDoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Xe/FF13k+jGyjUD+kTX4ES7lYkOC7BsjBENgSFLu5+c=; b=ERNGt/FdnX7YiAmeFXXLAycpAxYdcvIGsO03h7xJh0KshBUnzru2j9y3AYgFMawjCZ WU49Mg6M4WugrtD/LXldv+NTDfVY23pnOo+39YqiaFbXITHEDc9kWuVYx0GcmGDTnbYR at3zjxDPR31vYRwYBPnsdpvKFsRppF5pVmOAqJyN1Jn5WOCgGzvOF7zv7/cN1gMF8Lku CaBcyANnS81GeF07XT9aHvur6ad4+SLkSoDcCMo+cg/8FcpGRnxB4kuFVMWztHVyzzWq M45NizEH6iHJSCqC0JI8FnB7Kj4+pwNu9ollbAuYAL5nDesTI6vo5cgdpiF1gn/5ho9B VZcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Az9Ug6xU; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v1-20020a626101000000b0063d238b6049si275421pfb.286.2023.05.04.14.03.38; Thu, 04 May 2023 14:03:56 -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=@kernel.org header.s=k20201202 header.b=Az9Ug6xU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230193AbjEDUxh (ORCPT + 99 others); Thu, 4 May 2023 16:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbjEDUxf (ORCPT ); Thu, 4 May 2023 16:53:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C72412487 for ; Thu, 4 May 2023 13:53:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F327D639EE for ; Thu, 4 May 2023 20:51:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63DD2C4339B for ; Thu, 4 May 2023 20:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683233513; bh=8jM0/Qj2WU4shRKzQc3upkrAdrwdleE+htj4DhBjlBs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Az9Ug6xU8ZbKbC7tCDbi3Qux8tZCa0uyH9yoaZeMVtvuwoyvljJZWyX67zaGiLHox PdfwiZ6S3BOwQhDdTwa4uSJlXXWysH3uH9ey7/Wpz9EhTEHmtYS/0Ag3UrC7flUOBr UuoS1thl9G36siqGwjo6BRMKJY/HiR+DrxOs/ScEDG+mt0PbHFMQBB9ZgZXgwIWrx7 zkNUwSRiDrHgYt2vC2H6iLNdW0eM2ESOEP7x0Jdh4dpLAMOlGR6zOYbM8GCnTUnUdc ejYWtQM6rZ0phV7YUBsdHqPvlL7g2vbOMkyUgM475BwbrYd43hDusRdRyDbUqjYRP9 IDW3geoHeYNjg== Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-75131c2997bso744244785a.1 for ; Thu, 04 May 2023 13:51:53 -0700 (PDT) X-Gm-Message-State: AC+VfDyHu6p5f4sZr8oGOgqA12UvxjLQvotesyPNXGtQY2p4pwPGqHPT AhRxehs91FUAzRo5sASFoLctKU6Zl3mHNjljX2s= X-Received: by 2002:a05:622a:510:b0:3ef:2eab:3451 with SMTP id l16-20020a05622a051000b003ef2eab3451mr8122711qtx.20.1683233512512; Thu, 04 May 2023 13:51:52 -0700 (PDT) MIME-Version: 1.0 References: <20230421182738.901701-1-anna@kernel.org> In-Reply-To: From: Anna Schumaker Date: Thu, 4 May 2023 16:51:36 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH] NFS: add a sysfs file for enabling & disabling nfs features To: Benjamin Coddington Cc: linux-nfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Thu, May 4, 2023 at 8:56=E2=80=AFAM Benjamin Coddington wrote: > > On 21 Apr 2023, at 14:27, Anna Schumaker wrote: > > > From: Anna Schumaker > > > > And add some basic checking so we only enable features that are present > > in a given NFS version. > > > > Signed-off-by: Anna Schumaker > > --- > > This is great, I like how you've kept the +/- notation similar to knfsd > supported versions. > > Another way to do this would be an attribute file per capability, setting= it > to 0 or 1 which is more inline with sysfs usage. > > I think if we do use this, we ought to leave readdir plus out of it becau= se > there's already a mount option for it. Readdir plus can be turned on and > off with a remount already. The issue for me would be how to work out wh= at > the behavior should be when we have a mount that has "nordirplus" and the= n > someone tries to toggle it via sysfs. That makes sense! > > Any other thoughts? I guess if we remove the readdir plus option, then we could make it so this file only shows up on v4.2 mounts. > > I'll add this patch to my future postings of sysfs work. Do you want a v2 without the readdir plus line, and with the v4.2 restricti= on? Anna > > Ben >