Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp499981rwr; Thu, 4 May 2023 06:11:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/usKiJWd7XEIVJXvSRCh6iLnFS9nZrGu3S4f7LF7Sd26dSjpTTRPsuPuF0VYJcw/6P93g X-Received: by 2002:a17:902:db07:b0:1a6:d2a9:3fab with SMTP id m7-20020a170902db0700b001a6d2a93fabmr4494243plx.47.1683205918819; Thu, 04 May 2023 06:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683205918; cv=none; d=google.com; s=arc-20160816; b=yo+6yM/M4dPL17LTUCZLB4Gww/oNRMWY72EG+TD1siJISBu9M3weYT8c3p7M5BN+8g w5aQGbQV20o8EIoa+brm+0rDyekZuwFbsk3StjEgzwMdi6isOmHye+P8R7S27t/+N0f3 CWkUP/o089osdXJ2kZkaLm0yWRLCs3rrBsdJHFAxyVBB+s2QBhiiwtWNlXo03nfX9Z5X 785+vs44kJs3N4rQ4XfeuWSMN2RbS5vQZrXHnsJtiKDIRmNdEGOcV8LcatmnYI1rgbCJ EhNQRM/JReuBJHm2kosa1J+BufZd7nQ4b0SVMT12690pfjpDrMlQOvKUeZ3Ji23R3OZ+ I73Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=88eIQrGiFqCWFNvU+e8uQ+H0LUggzmKetsReRSSig9M=; b=H+qJXBOAkquxQ7usKAdUlJTkeRlSHUjR5Rf6fGUaGe/Z1RFGBSJjUupCxhkmPXGSME 1t3F6NlEmvC8DkCUyc6rGF2TWGU00rQLoFXreBFKHqk1MVHG0uUwqojx1d5MLMCu3WYS 224cLG81Cwn43GGFTCk/XjLtMY9+kmEQNS6dAFvwGuszmWrkR1ELHYwFoIRo5GmD0F/4 JukeQfLeawPTsYbx0zRCxCP137oy1q6dnbe1aStQkvKieO67EAeyoABQiDeroQ81fiBM M138C8Ttu4zvz6BBmdm+Yqi9O4hcl9OnI8Mal4kQ/ESn8jbslpU31du55BE3QzDfd1zJ gysA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dSulKI6L; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q17-20020a17090311d100b001a6f94a0854si36117065plh.324.2023.05.04.06.11.34; Thu, 04 May 2023 06:11:58 -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=@redhat.com header.s=mimecast20190719 header.b=dSulKI6L; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229993AbjEDM5h (ORCPT + 99 others); Thu, 4 May 2023 08:57:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbjEDM5b (ORCPT ); Thu, 4 May 2023 08:57:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F3C559FD for ; Thu, 4 May 2023 05:56:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683205002; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=88eIQrGiFqCWFNvU+e8uQ+H0LUggzmKetsReRSSig9M=; b=dSulKI6LaXM/6JlZ74DMQfrIFhTT8x/3xurE5hTuYLO6JISPLgompR32cYrqqp1u4r+jrV x0FV0aaXosN/5ssQ2xqyS7vqqEkpwADgtfusCFhMSGbgAT2Z6OupvnQtX0rBNmckDvYJzC akCeXWnJcAyQC23H/ilYW+13Zaecp1E= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-147-8uF3I8GHNbCKg46-MGPlug-1; Thu, 04 May 2023 08:56:39 -0400 X-MC-Unique: 8uF3I8GHNbCKg46-MGPlug-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E1BEB3C10C70; Thu, 4 May 2023 12:56:38 +0000 (UTC) Received: from [192.168.37.1] (unknown [10.22.50.12]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7B26E492C3E; Thu, 4 May 2023 12:56:38 +0000 (UTC) From: Benjamin Coddington To: Anna Schumaker Cc: linux-nfs@vger.kernel.org Subject: Re: [RFC PATCH] NFS: add a sysfs file for enabling & disabling nfs features Date: Thu, 04 May 2023 08:56:37 -0400 Message-ID: In-Reply-To: <20230421182738.901701-1-anna@kernel.org> References: <20230421182738.901701-1-anna@kernel.org> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 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 because 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 what the behavior should be when we have a mount that has "nordirplus" and then someone tries to toggle it via sysfs. Any other thoughts? I'll add this patch to my future postings of sysfs work. Ben