Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1033747pxb; Tue, 29 Mar 2022 15:30:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwr0KrY0FjLrREMDttHhHZA1Z2R1OM3C3Il22Fj7NumdrYb5jhoQB6M4/g42UpcY1J9l02k X-Received: by 2002:a63:110e:0:b0:375:89f4:b54e with SMTP id g14-20020a63110e000000b0037589f4b54emr3631133pgl.430.1648593035292; Tue, 29 Mar 2022 15:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648593035; cv=none; d=google.com; s=arc-20160816; b=GM6S38fQUnh5RLJDjSWsMY6lRZuP5VagB+WSo5Hvx23QOqVzLO1H9eJhJHMcBjigsY EZVfEMFbXrGfkREcxrbjYvM14j6nOkjUaCDmTuWjIecl11/x/l0lEPSLjU5hbLiAKmv4 +g7hB6NZ6APSvREsumGcw8h2NGvhdAsvNrUcI3xHIbYHwiDf1QIy8Q/9xKE5L7Jvge3f AsYyMVQV/oUU3d5uGnHiU4kCzwglgVXYyJQMNV+voDyv1pOAjZHRy6CLEhD7aCP7M5+P Gw3lvqQlGsYOaZ+bM731PLv6zW5fP86kItZpEnZLjXcXWKtyVdfUU5CQ9uzJYksP4Zw0 QAVw== 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:dkim-signature; bh=xJxDL1SNTaKnpVlTXGlfkqsJg1j05V/c8caKh7MyTzc=; b=aFgIxBeCDr/HQfxzses9+llLP2sizzQtR/6cOZ4eJ+0HwWus1l4zoeREAjR86YDGnF oJkpfLnUDHkv3jyfXv3p0khx8OGKztTfdmYCS7KM1Ezg/xQX3fmK9I5t1+nvnYMRLyOI QUgdKrZFv7cwgxBmieb2WHYPGeJVlH/oXh3B8+/O8fdFe69SMV49n0/Pw+UoCVK6vplQ rS+Jjzg7ypue2DHhxIx414zUZuAoSUYw/45OZbJUWKt+z93dlclHUHufZIzJaHG/rwDy vASKeYx8XsAbFFgx+o7JlgHqZsmv6ejhj1PhTFYEzeSMczPruFgOwTwJcz8GE7jbeUUK +H2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=erLq8z3h; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a636d05000000b003816043ee66si19786689pgc.91.2022.03.29.15.30.09; Tue, 29 Mar 2022 15:30:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@gmail.com header.s=20210112 header.b=erLq8z3h; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231625AbiC2LgC (ORCPT + 99 others); Tue, 29 Mar 2022 07:36:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234229AbiC2LgB (ORCPT ); Tue, 29 Mar 2022 07:36:01 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C014B27CED; Tue, 29 Mar 2022 04:34:14 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id gp15-20020a17090adf0f00b001c7cd11b0b3so1754691pjb.3; Tue, 29 Mar 2022 04:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xJxDL1SNTaKnpVlTXGlfkqsJg1j05V/c8caKh7MyTzc=; b=erLq8z3hz7HGoGBev359f2q+e7U2gr6L+kklmARvKRjQheIINCWiRuhZKkpYNps42n 9SjECMP0G46mJnNRt0sLYxpUbtJnYzde8fKpKacmVeFCYNvZ7vfL/odEf9gkxEyKhwDF /6Qvle4mQ5Op1/kgkydkvfwxJCU29mvqAuUYf3oDI8Q40rBxqQ4OBHyyIQ4e00imXIDY jdZbIID6ftYlr82O8sRL7UnuxlCpDoolsvgYg6pFmcZ+WosLSuVwrVFs2LfSgcCd8lRL kfuMaE/t4wwSajfHNheZz63pfv0Xc45VAR4y6y3GDczV2DiQ0mKJtt3c39lNXlEGuaug bg4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xJxDL1SNTaKnpVlTXGlfkqsJg1j05V/c8caKh7MyTzc=; b=OsK0l1/gmTF7iDo64S7BdSVVTrqMaivuSEpq5k/s/V2KAH/BkDTzzMnrarJ5HCvXqh i2Dv9a9GA0/A0jp+88UDczC7SP3qKb7bbS6rbrkSO9RlmmiJI0n/jHcujqyVQOtRj/Cc 0WZRoQfmvnocH76AOHDKkwnwBTFzg8TXiyuXrJ8MuyUZMNbN1ZmT/Jd2ThDeUTCXf8er xn6Op1KOuDpxl2tZgZ2aEaf7mvcwedaeA+muxPfvDx6xKrCkY7zXzY6kICsdc+mJpQro hZu9jhLUwCivUVCNqUT6vgLbzIQrS7lF9+c/GNkAwH0/KaX8TK0BliGZvUWyjs1SeQbi +/1w== X-Gm-Message-State: AOAM533/0RXaFsCSZnnPOvo5WDKITdh40tVdybDp9+sLBXomlolU1d1z VGC+sVWbYSnUvhlO4xGMCII= X-Received: by 2002:a17:90a:9f0b:b0:1c6:a876:4157 with SMTP id n11-20020a17090a9f0b00b001c6a8764157mr4058159pjp.173.1648553654183; Tue, 29 Mar 2022 04:34:14 -0700 (PDT) Received: from localhost ([122.179.46.149]) by smtp.gmail.com with ESMTPSA id p13-20020a056a000b4d00b004faecee6e89sm18987908pfo.208.2022.03.29.04.34.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Mar 2022 04:34:13 -0700 (PDT) Date: Tue, 29 Mar 2022 17:04:11 +0530 From: Ritesh Harjani To: "Darrick J. Wong" Cc: Ritesh Harjani , fstests , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv2 4/4] generic/677: Add a test to check unwritten extents tracking Message-ID: <20220329113411.ov6efsdyvbfa4xul@riteshh-domain> References: <37d65f1026f2fc1f2d13ab54980de93f4fa34c46.1647342932.git.riteshh@linux.ibm.com> <20220315165607.GD8200@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220315165607.GD8200@magnolia> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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-ext4@vger.kernel.org On 22/03/15 09:56AM, Darrick J. Wong wrote: > On Tue, Mar 15, 2022 at 07:58:59PM +0530, Ritesh Harjani wrote: > > With these sequence of operation (in certain cases like with ext4 fast_commit) > > could miss to track unwritten extents during replay phase > > (after sudden FS shutdown). > > > > This fstest adds a test case to test this. > > > > 5e4d0eba1ccaf19f > > ext4: fix fast commit may miss tracking range for FALLOC_FL_ZERO_RANGE > > > > Signed-off-by: Ritesh Harjani > > --- > > tests/generic/677 | 64 +++++++++++++++++++++++++++++++++++++++++++ > > tests/generic/677.out | 6 ++++ > > 2 files changed, 70 insertions(+) > > create mode 100755 tests/generic/677 > > create mode 100644 tests/generic/677.out > > > > diff --git a/tests/generic/677 b/tests/generic/677 > > new file mode 100755 > > index 00000000..e316763a > > --- /dev/null > > +++ b/tests/generic/677 > > @@ -0,0 +1,64 @@ > > +#! /bin/bash > > +# SPDX-License-Identifier: GPL-2.0 > > +# Copyright (c) 2022 IBM Corporation. All Rights Reserved. > > +# > > +# FS QA Test 677 > > +# > > +# Test below sequence of operation which (w/o below kernel patch) in case of > > +# ext4 with fast_commit may misss to track unwritten extents. > > +# commit 5e4d0eba1ccaf19f > > +# ext4: fix fast commit may miss tracking range for FALLOC_FL_ZERO_RANGE > > +# > > +. ./common/preamble > > +_begin_fstest auto quick log shutdown recoveryloop > > + > > +# Override the default cleanup function. > > +_cleanup() > > +{ > > + cd / > > + rm -r -f $tmp.* > > +} > > + > > +# Import common functions. > > +. ./common/filter > > +. ./common/punch > > + > > +# real QA test starts here > > + > > +# Modify as appropriate. > > +_supported_fs generic > > +_require_scratch > > +_require_xfs_io_command "fzero" > > +_require_xfs_io_command "fiemap" > > + > > +t1=$SCRATCH_MNT/t1 > > + > > +_scratch_mkfs > $seqres.full 2>&1 > > + > > +_scratch_mount >> $seqres.full 2>&1 > > + > > +bs=$(_get_block_size $SCRATCH_MNT) > > Same comments about blocksize, group names, and > _require_scratch_shutdown as the last patch. Sure, I will fix blocksize and _require_scratch_shutdown part. I have added my thoughts above group names in previous patch. Thanks for reviewing this. -ritesh