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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA60BC61DA4 for ; Sat, 18 Feb 2023 06:11:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229616AbjBRGLX (ORCPT ); Sat, 18 Feb 2023 01:11:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjBRGLW (ORCPT ); Sat, 18 Feb 2023 01:11:22 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 220C543933 for ; Fri, 17 Feb 2023 22:10:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676700635; 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=qJ2UNpwUhKlTpkBny6N3Ttv/bcvyUY8/AGG3V8QUGWU=; b=RfMVCcmt78JsAZqYVz9fulhar2uc+m9FYHz1z9bgxwsTd9Mn2qgGICF5EjWkBzQBIxm8U6 IFgeyY/Od76fzGr/Bbiv62d6CfJ7zZQ9+f0M3Dv6hdaevs2jcj3QhLy6u0l9208hV9NdF0 T4EtL9deFNL4ocX2r4IY0BP4P0VlD+0= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-562-pxzCyb1FPD2CtFSTpKS1HQ-1; Sat, 18 Feb 2023 01:10:33 -0500 X-MC-Unique: pxzCyb1FPD2CtFSTpKS1HQ-1 Received: by mail-pj1-f72.google.com with SMTP id k9-20020a17090a62c900b0022936a63a22so118563pjs.8 for ; Fri, 17 Feb 2023 22:10:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qJ2UNpwUhKlTpkBny6N3Ttv/bcvyUY8/AGG3V8QUGWU=; b=wC/X4pGoiiPolEmTh/aqLrB2uVp72W9VHDOp+bxHncwK/irv2W1z7EWIOR6rF0hwSS 7KrIyS1G8BIHKbp+ghA0httLa2lXeDno6FSi6oIsPtaK8S0tMuJ1eyD7/xiWnbCoteER nQIeHHUzPVcNwBz47JNElWsUTKbWDM+dqhd1quL5NfGJhQc9cirZAV05Hxqs80qFE1t+ cXwbe5nRSUHf3qrU+42IKCG6W74Ae+1LUTaP83IqkRyAVrNIKm06HPaON1DkKOhOFH27 P/JcB6IZP6HzhtI1tg8TLnj2oHgHZVYbvj+B9PZwErS31A2Kdp/pL+3bK3U83NBrfKss 0k8A== X-Gm-Message-State: AO0yUKUMKKr5bmAfuE2L+7AROqfYt9MhO6d6JUGWG1wiPtNyAaYGtppd trz+sm12udQYMHeopSuhQ2EJaqgptkwxCKK4HyTNsnu1qscTsthwMKv1I7FmgRvYlvJWfjrykqf vKOv7hMWxvOc0qYbH/Q== X-Received: by 2002:a17:902:ec90:b0:199:527d:42c3 with SMTP id x16-20020a170902ec9000b00199527d42c3mr2875636plg.24.1676700632296; Fri, 17 Feb 2023 22:10:32 -0800 (PST) X-Google-Smtp-Source: AK7set9FHXK22J49eyJQRgwk93aWLXUA4bvzpvCUpWzCIE35qTAY/ccIdpBgRZrVisdzVFMDE8r9vA== X-Received: by 2002:a17:902:ec90:b0:199:527d:42c3 with SMTP id x16-20020a170902ec9000b00199527d42c3mr2875622plg.24.1676700631929; Fri, 17 Feb 2023 22:10:31 -0800 (PST) Received: from zlang-mailbox ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id u9-20020a17090341c900b0019c33ee4730sm556456ple.146.2023.02.17.22.10.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 22:10:31 -0800 (PST) Date: Sat, 18 Feb 2023 14:10:27 +0800 From: Zorro Lang To: "Darrick J. Wong" Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org Subject: Re: [PATCH 1/1] xfs: race fsstress with online scrub and repair for quota metadata Message-ID: <20230218061027.t3sf6fstrqv2hdcf@zlang-mailbox> References: <167243876170.726678.17872891128076933126.stgit@magnolia> <167243876182.726678.5993728572164871488.stgit@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <167243876182.726678.5993728572164871488.stgit@magnolia> Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org On Fri, Dec 30, 2022 at 02:19:21PM -0800, Darrick J. Wong wrote: > From: Darrick J. Wong > > Create tests to race fsstress with dquot repair while running fsstress > in the background. > > Signed-off-by: Darrick J. Wong > --- Reviewed-by: Zorro Lang > tests/xfs/809 | 40 ++++++++++++++++++++++++++++++++++++++++ > tests/xfs/809.out | 2 ++ > tests/xfs/810 | 40 ++++++++++++++++++++++++++++++++++++++++ > tests/xfs/810.out | 2 ++ > tests/xfs/811 | 40 ++++++++++++++++++++++++++++++++++++++++ > tests/xfs/811.out | 2 ++ > 6 files changed, 126 insertions(+) > create mode 100755 tests/xfs/809 > create mode 100644 tests/xfs/809.out > create mode 100755 tests/xfs/810 > create mode 100644 tests/xfs/810.out > create mode 100755 tests/xfs/811 > create mode 100644 tests/xfs/811.out > > > diff --git a/tests/xfs/809 b/tests/xfs/809 > new file mode 100755 > index 0000000000..35ac02ff85 > --- /dev/null > +++ b/tests/xfs/809 > @@ -0,0 +1,40 @@ > +#! /bin/bash > +# SPDX-License-Identifier: GPL-2.0 > +# Copyright (c) 2022 Oracle. Inc. All Rights Reserved. > +# > +# FS QA Test No. 809 > +# > +# Race fsstress and user quota repair for a while to see if we crash or > +# livelock. > +# > +. ./common/preamble > +_begin_fstest online_repair dangerous_fsstress_repair > + > +_cleanup() { > + _scratch_xfs_stress_scrub_cleanup &> /dev/null > + cd / > + rm -r -f $tmp.* > +} > +_register_cleanup "_cleanup" BUS > + > +# Import common functions. > +. ./common/filter > +. ./common/fuzzy > +. ./common/inject > +. ./common/xfs > +. ./common/quota > + > +# real QA test starts here > +_supported_fs xfs > +_require_scratch > +_require_xfs_stress_online_repair > + > +_scratch_mkfs > "$seqres.full" 2>&1 > +_scratch_mount > +_require_xfs_quota_acct_enabled "$SCRATCH_DEV" usrquota > +_scratch_xfs_stress_online_repair -s "repair usrquota" > + > +# success, all done > +echo Silence is golden > +status=0 > +exit > diff --git a/tests/xfs/809.out b/tests/xfs/809.out > new file mode 100644 > index 0000000000..e90865ca8f > --- /dev/null > +++ b/tests/xfs/809.out > @@ -0,0 +1,2 @@ > +QA output created by 809 > +Silence is golden > diff --git a/tests/xfs/810 b/tests/xfs/810 > new file mode 100755 > index 0000000000..7387910504 > --- /dev/null > +++ b/tests/xfs/810 > @@ -0,0 +1,40 @@ > +#! /bin/bash > +# SPDX-License-Identifier: GPL-2.0 > +# Copyright (c) 2022 Oracle. Inc. All Rights Reserved. > +# > +# FS QA Test No. 810 > +# > +# Race fsstress and group quota repair for a while to see if we crash or > +# livelock. > +# > +. ./common/preamble > +_begin_fstest online_repair dangerous_fsstress_repair > + > +_cleanup() { > + _scratch_xfs_stress_scrub_cleanup &> /dev/null > + cd / > + rm -r -f $tmp.* > +} > +_register_cleanup "_cleanup" BUS > + > +# Import common functions. > +. ./common/filter > +. ./common/fuzzy > +. ./common/inject > +. ./common/xfs > +. ./common/quota > + > +# real QA test starts here > +_supported_fs xfs > +_require_scratch > +_require_xfs_stress_online_repair > + > +_scratch_mkfs > "$seqres.full" 2>&1 > +_scratch_mount > +_require_xfs_quota_acct_enabled "$SCRATCH_DEV" grpquota > +_scratch_xfs_stress_online_repair -s "repair grpquota" > + > +# success, all done > +echo Silence is golden > +status=0 > +exit > diff --git a/tests/xfs/810.out b/tests/xfs/810.out > new file mode 100644 > index 0000000000..90f12fdd21 > --- /dev/null > +++ b/tests/xfs/810.out > @@ -0,0 +1,2 @@ > +QA output created by 810 > +Silence is golden > diff --git a/tests/xfs/811 b/tests/xfs/811 > new file mode 100755 > index 0000000000..1e13940b46 > --- /dev/null > +++ b/tests/xfs/811 > @@ -0,0 +1,40 @@ > +#! /bin/bash > +# SPDX-License-Identifier: GPL-2.0 > +# Copyright (c) 2022 Oracle. Inc. All Rights Reserved. > +# > +# FS QA Test No. 811 > +# > +# Race fsstress and project quota repair for a while to see if we crash or > +# livelock. > +# > +. ./common/preamble > +_begin_fstest online_repair dangerous_fsstress_repair > + > +_cleanup() { > + _scratch_xfs_stress_scrub_cleanup &> /dev/null > + cd / > + rm -r -f $tmp.* > +} > +_register_cleanup "_cleanup" BUS > + > +# Import common functions. > +. ./common/filter > +. ./common/fuzzy > +. ./common/inject > +. ./common/xfs > +. ./common/quota > + > +# real QA test starts here > +_supported_fs xfs > +_require_scratch > +_require_xfs_stress_online_repair > + > +_scratch_mkfs > "$seqres.full" 2>&1 > +_scratch_mount > +_require_xfs_quota_acct_enabled "$SCRATCH_DEV" prjquota > +_scratch_xfs_stress_online_repair -s "repair prjquota" > + > +# success, all done > +echo Silence is golden > +status=0 > +exit > diff --git a/tests/xfs/811.out b/tests/xfs/811.out > new file mode 100644 > index 0000000000..cf30f69bdc > --- /dev/null > +++ b/tests/xfs/811.out > @@ -0,0 +1,2 @@ > +QA output created by 811 > +Silence is golden >