Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1912819pxt; Sun, 8 Aug 2021 05:40:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbgUkF4jAdkTtOYLcREDEkNCtvFpgIOWvsWAlJYogkUxYBmj5csYcSRhnGsJw67fTd34Km X-Received: by 2002:a6b:670a:: with SMTP id b10mr84880ioc.137.1628426423807; Sun, 08 Aug 2021 05:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628426423; cv=none; d=google.com; s=arc-20160816; b=Ljg8bqzXRPsNkLd+nAkobVi/hI4FRrXTsNJaXKkttWB+Dn/9s5we8zEqi+2/MOe9Tg h6n6MKws9/XbwFXUMvJvvUm07EFLkTkUBPGC6ZJ/I/8tEZndGYUZmjG12yUf0a3fAd2i G2B03ONecaP2eUygH5S9ESiFxFyYtUovrK2zcya0fQxYNO6+GG0n6wbOzHfaCWwVZQNZ 2EdA9r2uL0c0a9oXogSEMosUFUdJ58mJAWAKvNKpSTcBMxHebWxqMPLCCncpy0nGlUj6 oUjwGIz/gN5c2UCWnrpwuQjmKgoNTRq4oEkmtllRRY5J9j+X176/vEFPW3ktV1YQLJGG nguQ== 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=h40rcIcTj3veuKYXgDU8EdXW50NS6JTMzL6YbJRcP80=; b=l1ZTWeTd2gLq9us3aEXR15URX349mPQnqrQfP0Ei9KM1kxF/fw4wV7iS8ZLEfrUDRU 0s1fYnt5pVI3M9mSiBYw1koH0xRpPhiYpt3SH9RP0A1SC99eBMlWWDaqTmQq9uEdKusA FwD/IQAoVjWm6T0H27uqId2zSRBmYMcPzx7Fw3iKonf37RMcd9YREIqiG38QnuhAF234 IuvVxS6c+lkJJzXSTThfUIrJXelCfPhXai2EDUTyEXJ4lIPELdmkhX0Ey6YCHRg2G4Ld 21rU3KUy7CydecTt69DRabhstscvTOx3Y39EHp0xBxY9U52hWKHHfHxwHX6hm+0J7O4f v2qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 n9si14046915ilj.31.2021.08.08.05.39.57; Sun, 08 Aug 2021 05:40:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229882AbhHHMgd (ORCPT + 99 others); Sun, 8 Aug 2021 08:36:33 -0400 Received: from out20-109.mail.aliyun.com ([115.124.20.109]:54860 "EHLO out20-109.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbhHHMgd (ORCPT ); Sun, 8 Aug 2021 08:36:33 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07566925|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.177431-0.00443938-0.818129;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047207;MF=guan@eryu.me;NM=1;PH=DS;RN=6;RT=6;SR=0;TI=SMTPD_---.Kx0Oam-_1628426171; Received: from localhost(mailfrom:guan@eryu.me fp:SMTPD_---.Kx0Oam-_1628426171) by smtp.aliyun-inc.com(10.147.41.143); Sun, 08 Aug 2021 20:36:12 +0800 Date: Sun, 8 Aug 2021 20:36:11 +0800 From: Eryu Guan To: Ritesh Harjani Cc: fstests@vger.kernel.org, linux-ext4@vger.kernel.org, Theodore Ts'o , "Darrick J . Wong" , Dave Chinner Subject: Re: [PATCHv2 5/9] generic/031: Fix the test case for 64k blocksize config Message-ID: References: <20210803050033.meopotfeooo6n4gu@riteshh-domain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210803050033.meopotfeooo6n4gu@riteshh-domain> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Aug 03, 2021 at 10:30:33AM +0530, Ritesh Harjani wrote: > On 21/08/02 12:00AM, Eryu Guan wrote: > > On Wed, Jul 21, 2021 at 10:57:58AM +0530, Ritesh Harjani wrote: > > > This test fails with blocksize 64k since the test assumes 4k blocksize > > > in fcollapse param. This patch fixes that and also tests for 64k > > > blocksize. > > > > > > Signed-off-by: Ritesh Harjani > > > --- > > > tests/generic/031 | 14 +++++++++----- > > > tests/generic/031.out | 16 ++++++++-------- > > > 2 files changed, 17 insertions(+), 13 deletions(-) > > > > > > diff --git a/tests/generic/031 b/tests/generic/031 > > > index 313ce9ff..11961c54 100755 > > > --- a/tests/generic/031 > > > +++ b/tests/generic/031 > > > @@ -26,11 +26,16 @@ testfile=$SCRATCH_MNT/testfile > > > _scratch_mkfs > /dev/null 2>&1 > > > _scratch_mount > > > > > > +# fcollapse need offset and len to be multiple of blocksize for filesystems > > > +# So let's make the offsets and len required for fcollapse multiples of 64K > > > +# so that it works for all configurations (including on dax on 64K page size > > > +# systems) > > > +fact=$((65536/4096)) > > > $XFS_IO_PROG -f \ > > > - -c "pwrite 185332 55756" \ > > > - -c "fcollapse 28672 40960" \ > > > - -c "pwrite 133228 63394" \ > > > - -c "fcollapse 0 4096" \ > > > + -c "pwrite $((185332*fact + 12)) $((55756*fact + 12))" \ > > > > Where does this 12 come from? > A random number so that the offset and length are not bocksize aligned. > If you see the final .out file, you will see the offset of the writes > remains the same with and before this patch. > > > And I'm wondering if this still reproduces the original bug. > I am not sure how to trigger this. I know that this test was intended for > bs < ps cases. If someone can help me / point me to the kernel fix for this, > I can try to reproduce the original bug too. > > I found this link for this test patch series. Couldn't find the kernel fixes > link though. > https://www.spinics.net/lists/fstests/msg00340.html I think it's a regression test for this patchset. https://www.spinics.net/lists/xfs/msg29807.html > > > > > > And looks like that the original test setups came from a specific > > fsstress or fsx run, and aimed to the specific bug, perhaps we could > > require the test with <= 4k block size, and _notrun in 64k case. > > It would be good to know whether this code could trigger the original bug or > not. Then we need not make _notrun for 64k case. Agreed, if we could make sure that updated test still triggers the original bug, there's no reason _notrun for 64k case. Thanks, Eryu