Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp829215pxy; Sun, 1 Aug 2021 03:42:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaOs/xtsMivxci1sf8/m0s98VScPZ+1HHiMfMuW4QEGg1Z4/b/IlAZZCeQRtoh8jto6P5x X-Received: by 2002:a6b:2bd4:: with SMTP id r203mr3829205ior.157.1627814579185; Sun, 01 Aug 2021 03:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627814579; cv=none; d=google.com; s=arc-20160816; b=q6IHnJCfaQAuwn9maTn49NJwFefDcoiCe2vJW4dXDyeG3VuH3ZOvKFuI8pGn5l8qsF +Fz7xbkQ1syuXWMPzox2aOcviRpw/dX5xPvlUQ2Qu52qAcq3gOas4+Zzg5Im4g8B+Fqm DS4eYA9OSiFw8QJYcDQ1cXCCipiNBAb6C+RU5dLDdKNWQAwlF/Wbjt85n2JMtc0M31/U 57rtpkuSlEN23acw5nCqMOnJIgf/C/2NaIUjrmPqk25Tm3t+aPriEQysduQ1rqk3VODu BSo5Tj2oUSlo0RSZzHScYjNPToMAL7cUGWhC6dgFNQgU7kj6HIyoSPPYwwsPkjLKAKsY 7oSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=OV/V6qgnsJnEWzw49psZQapKGMMVhKqqX0S/YBSVK0w=; b=tcHLIfV/txz5fNm6vHxjWNK0S6qf9J56tjwvJXabZN9+h9lF/agMmRoKO+EEv7EMkH CmoUruKo91RjLDNKg3FZA547/DWORRi1Iw1+we/uHMqlqzig04uU+WsbYejmhxiPD+DN lNMfA0iPItbEKkJI8vz6ojRDPdDDC3RzhlDx7AsHn5nxgGV3BmQsLDW11+mzqI5s7Rgk lvYoxKqO9/uKOIFAM1ErmxzQDmTT89MsI2tufXBcuOnYVooAtAE2Edv04jArIKF+71Ul E0CxCVAUL7tw7Zlt4UKZJ50gmBXLbhdeLD2gbTsPJjgpm6PjpXG9wam2Oeya4oC9rIzF stEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si8565938iok.92.2021.08.01.03.42.31; Sun, 01 Aug 2021 03:42:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231645AbhHAKmW (ORCPT + 99 others); Sun, 1 Aug 2021 06:42:22 -0400 Received: from out20-98.mail.aliyun.com ([115.124.20.98]:40906 "EHLO out20-98.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231518AbhHAKmV (ORCPT ); Sun, 1 Aug 2021 06:42:21 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07972568|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0544785-0.000554709-0.944967;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047203;MF=guan@eryu.me;NM=1;PH=DS;RN=3;RT=3;SR=0;TI=SMTPD_---.Ktose30_1627814532; Received: from localhost(mailfrom:guan@eryu.me fp:SMTPD_---.Ktose30_1627814532) by smtp.aliyun-inc.com(10.147.43.230); Sun, 01 Aug 2021 18:42:12 +0800 Date: Sun, 1 Aug 2021 18:42:11 +0800 From: Eryu Guan To: Jeffle Xu Cc: fstests@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH] common/rc: only force nfs4.2 non-default SEEK_HOLE behaviour Message-ID: References: <20210729044758.63219-1-jefflexu@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210729044758.63219-1-jefflexu@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org [cc nfs list] On Thu, Jul 29, 2021 at 12:47:58PM +0800, Jeffle Xu wrote: > Only NFSv4.2 supports non-defautl SEEK_HOLE behaviour. Thus default > SEEK_HOLE behaviour shall be allowed for NFSv4.0/4.1, or it will fail > generic/285, generic/448, generic/490 on NFSv4.0/4.1, complaining they > should support non-default SEEK_HOLE behaviour. > > The *.full log is like: > File system supports the default behavior. > Default behavior is not allowed. Aborting. > > Signed-off-by: Jeffle Xu Looks correct to me, but I'd like nfs folks to take a look as well, to conform if only nfsv4.2 supports SEEK_DATA/SEEK_HOLE non-default behavior. Thanks, Eryu P.S. Please cc the corresponding filesystem list next time if patch affects the specific fs. > --- > common/rc | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/common/rc b/common/rc > index 25a838a3..9be6f89d 100644 > --- a/common/rc > +++ b/common/rc > @@ -2495,10 +2495,10 @@ _fstyp_has_non_default_seek_data_hole() > return 0 > ;; > nfs*) > - # NFSv2 and NFSv3 only support default behavior of SEEK_HOLE, > - # while NFSv4 supports non-default behavior > - local nfsvers=`_df_device $TEST_DEV | $AWK_PROG '{ print $2 }'` > - [ "$nfsvers" = "nfs4" ] > + # NFSv2, NFSv3, and NFSv4.0/4.1 only support default behavior of SEEK_HOLE, > + # while NFSv4.2 supports non-default behavior > + local nfsvers=`_mount() | grep $TEST_DEV | sed -n 's/^.*vers=\([0-9.]*\).*$/\1/p'` > + [ "$nfsvers" = "4.2" ] > return $? > ;; > overlay) > -- > 2.27.0