Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BE69C433F5 for ; Tue, 8 Mar 2022 13:15:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233002AbiCHNQD (ORCPT ); Tue, 8 Mar 2022 08:16:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiCHNQC (ORCPT ); Tue, 8 Mar 2022 08:16:02 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FB6C28E20 for ; Tue, 8 Mar 2022 05:15:05 -0800 (PST) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KCbKM6gQ5zbc37; Tue, 8 Mar 2022 21:10:15 +0800 (CST) Received: from kwepemm600010.china.huawei.com (7.193.23.86) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 8 Mar 2022 21:15:03 +0800 Received: from [10.174.178.31] (10.174.178.31) by kwepemm600010.china.huawei.com (7.193.23.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 8 Mar 2022 21:15:03 +0800 Subject: Re: [PATCH] generic/066: attr1 is still there after log replay on f2fs To: , CC: , , References: <20220228035719.4102745-1-sunke32@huawei.com> From: Sun Ke Message-ID: Date: Tue, 8 Mar 2022 21:15:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20220228035719.4102745-1-sunke32@huawei.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.178.31] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600010.china.huawei.com (7.193.23.86) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org Friendly ping... ÔÚ 2022/2/28 11:57, Sun Ke дµÀ: > The test fail on f2fs: > xattr names and values after second fsync log replay: > # file: SCRATCH_MNT/foobar > +user.attr1="val1" > user.attr3="val3" > > attr1 is still there after log replay. > I guess it is f2fs's special feature to improve the performance. > > Signed-off-by: Sun Ke > --- > > Is it a BUG on f2fs? > .gitignore | 1 + > tests/generic/066 | 3 +++ > tests/generic/066.cfg | 1 + > tests/generic/{066.out => 066.out.default} | 0 > tests/generic/066.out.f2fs | 11 +++++++++++ > 5 files changed, 16 insertions(+) > create mode 100644 tests/generic/066.cfg > rename tests/generic/{066.out => 066.out.default} (100%) > create mode 100644 tests/generic/066.out.f2fs > > diff --git a/.gitignore b/.gitignore > index 65b93307..135742f5 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -194,6 +194,7 @@ tags > /src/perf/*.pyc > > # Symlinked files > +/tests/generic/066.out > /tests/generic/035.out > /tests/generic/050.out > /tests/xfs/033.out > diff --git a/tests/generic/066 b/tests/generic/066 > index 105a7acd..524dc82d 100755 > --- a/tests/generic/066 > +++ b/tests/generic/066 > @@ -17,6 +17,7 @@ > # > # Btrfs: remove deleted xattrs on fsync log replay > # > +seqfull=$0 > . ./common/preamble > _begin_fstest auto quick attr metadata log > > @@ -32,6 +33,8 @@ _cleanup() > . ./common/dmflakey > . ./common/attr > > +# Select appropriate golden output based on fstype > +_link_out_file > # real QA test starts here > _supported_fs generic > _require_scratch > diff --git a/tests/generic/066.cfg b/tests/generic/066.cfg > new file mode 100644 > index 00000000..c25641be > --- /dev/null > +++ b/tests/generic/066.cfg > @@ -0,0 +1 @@ > +f2fs: f2fs > diff --git a/tests/generic/066.out b/tests/generic/066.out.default > similarity index 100% > rename from tests/generic/066.out > rename to tests/generic/066.out.default > diff --git a/tests/generic/066.out.f2fs b/tests/generic/066.out.f2fs > new file mode 100644 > index 00000000..8fc58693 > --- /dev/null > +++ b/tests/generic/066.out.f2fs > @@ -0,0 +1,11 @@ > +QA output created by 066 > +xattr names and values after first fsync log replay: > +# file: SCRATCH_MNT/foobar > +user.attr1="val1" > +user.attr3="val3" > + > +xattr names and values after second fsync log replay: > +# file: SCRATCH_MNT/foobar > +user.attr1="val1" > +user.attr3="val3" > +