From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23A4DC4338F for ; Sun, 8 Aug 2021 13:42:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F1A7B61002 for ; Sun, 8 Aug 2021 13:42:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231169AbhHHNmT (ORCPT ); Sun, 8 Aug 2021 09:42:19 -0400 Received: from out20-2.mail.aliyun.com ([115.124.20.2]:35890 "EHLO out20-2.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229923AbhHHNmS (ORCPT ); Sun, 8 Aug 2021 09:42:18 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07772837|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0699849-0.00302431-0.926991;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047203;MF=guan@eryu.me;NM=1;PH=DS;RN=4;RT=4;SR=0;TI=SMTPD_---.Kx0uTNU_1628430117; Received: from localhost(mailfrom:guan@eryu.me fp:SMTPD_---.Kx0uTNU_1628430117) by smtp.aliyun-inc.com(10.147.40.7); Sun, 08 Aug 2021 21:41:58 +0800 Date: Sun, 8 Aug 2021 21:41:57 +0800 From: Eryu Guan To: Hao Xu Cc: fstests@vger.kernel.org, Frank van der Linden , linux-nfs@vger.kernel.org Subject: Re: [PATCH] common/attr: remove the MAX_ATTRS and MAX_ATTRVAL_SIZE for nfs Message-ID: References: <20210804074148.203065-1-haoxu@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210804074148.203065-1-haoxu@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org On Wed, Aug 04, 2021 at 03:41:48PM +0800, Hao Xu wrote: > The block size of localfs for nfs may be different with nfs itself. > So it's pointless to test nfs on xattrs size, just remove the special > judge code. > > Fixes: commit da3cdb3b91ca ("common/attr: set MAX_ATTR values correctly for NFS") > Signed-off-by: Hao Xu > --- > common/attr | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/common/attr b/common/attr > index 42ceab92335a..542dff34bf55 100644 > --- a/common/attr > +++ b/common/attr > @@ -253,7 +253,7 @@ _getfattr() > > # set maximum total attr space based on fs type > case "$FSTYP" in > -xfs|udf|pvfs2|9p|ceph|nfs) > +xfs|udf|pvfs2|9p|ceph) > MAX_ATTRS=1000 This makes generic/020 _notrun on nfs, I don't think that's what we want. I think MAX_ATTRS is a best-effort guess based on filesystem block size, it's not a accurate hard limit. And if there's no good way to tell the fs blocksize on nfs server side, then we could make a conservative assumption, e.g. the blocksize is 1k, and colculate MAX_ATTRS and MAX_ATTRVAL_SIZE based on that assumption. Thanks, Eryu > ;; > *) > @@ -273,7 +273,7 @@ xfs|udf|btrfs) > pvfs2) > MAX_ATTRVAL_SIZE=8192 > ;; > -9p|ceph|nfs) > +9p|ceph) > MAX_ATTRVAL_SIZE=65536 > ;; > bcachefs) > -- > 2.24.4