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=-16.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 20150C433B4 for ; Wed, 28 Apr 2021 17:48:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D445F613DC for ; Wed, 28 Apr 2021 17:48:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242462AbhD1Rsp (ORCPT ); Wed, 28 Apr 2021 13:48:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:60408 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242778AbhD1Rsn (ORCPT ); Wed, 28 Apr 2021 13:48:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619632078; 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=O6agX5tigvN+5FOe9w4Hj66VlzpPTJCuQDFa6uDYsO4=; b=IdZ4QEHBHPdp+p0RC/4vzkpYRxCuk1AzQj7HuP228JiS9+yiXUWAZLdkhq7jG2tFfVZ2YZ /OIyywXbs3KGBfyZUECEF4s9NOHVQILQElX4KmZI6p3AhBGYOAE7Z9Z2R1+l7C/qpJi9gn jEdykhVmkLsWgbJqA4M4p8uTvHSINHY= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-581-BYbq7emYOt2zfSV5jfaOwA-1; Wed, 28 Apr 2021 13:47:55 -0400 X-MC-Unique: BYbq7emYOt2zfSV5jfaOwA-1 Received: by mail-qv1-f69.google.com with SMTP id l61-20020a0c84430000b02901a9a7e363edso20427113qva.16 for ; Wed, 28 Apr 2021 10:47:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=O6agX5tigvN+5FOe9w4Hj66VlzpPTJCuQDFa6uDYsO4=; b=S9uaSsY/59zh966J07yY9VuntmhfXVNezZMELM6QVx9lI8aVvghGUxLeEbXaq/z6cw UCHkK6YjCEv5WRwdUyg7cBQGsjvlhcmZttfo+MOVaP4aal+Zlo1vbwxumzoAHx9cNzBb KtBNWc7s+QDdcpdbG/YBuznOc/FLzencxv0F+YZ3OkQCHbwj5oDwk8V7qlfBv6ofNIa7 AMJ/3VfI3R5ny6dYu3Q4OUSqYyCvFWRuk6cPfvnzs6ym4Yz+EWNHDR0nm59EKa08v/mi Vg15YyotWBkLyQuSV1TessIeKPXu6SKGiFRwc6tjyLWQW34HLXAH843lIwL1cWtTYtKL q4Tw== X-Gm-Message-State: AOAM531fhH802CuOtL3qa3+RHdGlrgV+cCg1X4RbCa3hIDXSNgfk9+QI cyF80n/wnG+HIr52VqgN5r12STfQQYG+UA3EWi7tYhm7vOKVXQcBTx/IafWxqFsunOrsw0TVPzk mYe0jr7ha3gfW7wgOsg== X-Received: by 2002:ac8:7fc5:: with SMTP id b5mr27806572qtk.41.1619632075454; Wed, 28 Apr 2021 10:47:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLj0pzM9rDJLLvl6ytN/zxkGHrebWz+iCUltfERJg7QOex6mg1uy6Itus5uN2sT+z+A/rWIw== X-Received: by 2002:ac8:7fc5:: with SMTP id b5mr27806551qtk.41.1619632075193; Wed, 28 Apr 2021 10:47:55 -0700 (PDT) Received: from bfoster ([98.216.211.229]) by smtp.gmail.com with ESMTPSA id h8sm480883qtp.47.2021.04.28.10.47.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 10:47:54 -0700 (PDT) Date: Wed, 28 Apr 2021 13:47:53 -0400 From: Brian Foster To: "Darrick J. Wong" Cc: guaneryu@gmail.com, linux-xfs@vger.kernel.org, fstests@vger.kernel.org, guan@eryu.me Subject: Re: [PATCH 5/5] xfs/49[12]: skip pre-lazysbcount filesystems Message-ID: References: <161958293466.3452351.14394620932744162301.stgit@magnolia> <161958296475.3452351.7075798777673076839.stgit@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <161958296475.3452351.7075798777673076839.stgit@magnolia> Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org On Tue, Apr 27, 2021 at 09:09:24PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong > > Prior to lazysbcount, the xfs mount code blindly trusted the value of > the fdblocks counter in the primary super, which means that the kernel > doesn't detect the fuzzed fdblocks value at all. V4 is deprecated and > pre-lazysbcount V4 hasn't been the default for ~14 years, so we'll just > skip these two tests on those old filesystems. > > Signed-off-by: Darrick J. Wong > --- > tests/xfs/491 | 5 +++++ > tests/xfs/492 | 5 +++++ > 2 files changed, 10 insertions(+) > > > diff --git a/tests/xfs/491 b/tests/xfs/491 > index 6420202b..9fd0ab56 100755 > --- a/tests/xfs/491 > +++ b/tests/xfs/491 > @@ -36,6 +36,11 @@ _require_scratch > > echo "Format and mount" > _scratch_mkfs > $seqres.full 2>&1 > + > +# pre-lazysbcount filesystems blindly trust the primary sb fdblocks > +_check_scratch_xfs_features LAZYSBCOUNT &>/dev/null || \ > + _notrun "filesystem requires lazysbcount" > + Perhaps we should turn this one into a '_require_scratch_xfs_feature ' helper or some such? Probably not that important for lazysbcount filtering, but it seems like that might be useful for newer features going forward. Brian > _scratch_mount >> $seqres.full 2>&1 > echo "test file" > $SCRATCH_MNT/testfile > > diff --git a/tests/xfs/492 b/tests/xfs/492 > index 522def47..c4b087b5 100755 > --- a/tests/xfs/492 > +++ b/tests/xfs/492 > @@ -36,6 +36,11 @@ _require_scratch > > echo "Format and mount" > _scratch_mkfs > $seqres.full 2>&1 > + > +# pre-lazysbcount filesystems blindly trust the primary sb fdblocks > +_check_scratch_xfs_features LAZYSBCOUNT &>/dev/null || \ > + _notrun "filesystem requires lazysbcount" > + > _scratch_mount >> $seqres.full 2>&1 > echo "test file" > $SCRATCH_MNT/testfile > >