Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5380918imw; Wed, 20 Jul 2022 04:47:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u6RFwkUCYDpQm8Mpdx0sLmC//tjurVhN3bZYdeoohxvW+XkRcQbcZzw4dM7tW625PEst8X X-Received: by 2002:a17:903:26c1:b0:16b:df40:e566 with SMTP id jg1-20020a17090326c100b0016bdf40e566mr38933893plb.121.1658317635568; Wed, 20 Jul 2022 04:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658317635; cv=none; d=google.com; s=arc-20160816; b=Pu8OzEroSyrrQPgxQVhGsvpmxUySKIXCDXwFNIhfFoWz3FiqUEkEe6ZMccyUTY1dk6 cf9Mj9WzthcYnyy58lhdmkz3C8U0X6dDDI59zgxPA7E1tBqsfFrgRTyNPwwvXNmeVZTw ZfP+eV7rkdyX1Q/YdM1F+mnXtat4jhnF/SK75C7eBhph49x+CTNpTGojIknUeS5LDOvj q5sfxbUfOdJvkW7gi/GXFPkQzCncDldSWDUyBUFaPecG1W5SMkMmW50lxbHxgcV8BnIM NGc85dRmkrYNi1EBb1DewE1GX9z+x7yq7EWsmTw8Ib5ud7gqahV772GUM2roqihUzGm3 9MNA== 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=kX9mWBLVRi0Al//6eocDcC1gCtqfYt5xvj3UZKDHk34=; b=spJd4YFrAhjZzq1OP/AO5eh5XKJJQozG0N07UGzfegE+zk6SZij316U1joGYOIHq09 CDT2rDjef1EqyK6yrP+3oGkDDX+LL3PlZhuZeHgjpyN7uAoFr4DyKpEmWWeC1wqrYhT8 7ScFOcL4R1odljYFAMUwZaq1aZjNqGwkDQu3MP1vpO4e+/g63sr2PVV+btVGGZqht7Wb AftVNyZAAyj5Qc6fDD5j1zn0aaJuHQ/Zgr7wV4JthzXj3huFANo+yvdZPgCkbzuZXed5 HdaO0nQUHKgAwpnyLB9d3NDj64INaBLmgHAXVIkn2Q2/qmNx0xzrKtfzVyNng3ykpRyM QV1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mit.edu header.s=outgoing header.b=fdgLFTmU; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a056a00141100b0052b29ffa4c9si22604098pfu.347.2022.07.20.04.46.51; Wed, 20 Jul 2022 04:47:15 -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=fail header.i=@mit.edu header.s=outgoing header.b=fdgLFTmU; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229761AbiGTLmt (ORCPT + 99 others); Wed, 20 Jul 2022 07:42:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240692AbiGTLmr (ORCPT ); Wed, 20 Jul 2022 07:42:47 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 869CC54073; Wed, 20 Jul 2022 04:42:46 -0700 (PDT) Received: from cwcc.thunk.org (pool-173-48-118-63.bstnma.fios.verizon.net [173.48.118.63]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 26KBgPb8017551 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Jul 2022 07:42:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1658317347; bh=kX9mWBLVRi0Al//6eocDcC1gCtqfYt5xvj3UZKDHk34=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=fdgLFTmU8vbaRpUjFzbvYj8M/1UNbVPQgibS7W8YJQNzN2rZkhHq7legPOVqvyq/M 4SPyR2L74a0vYLbgKYsMI53S0dvIYVWtmuheTsFoKw/He8aUhEtp//Y2JoCmlYcQz6 1y3aHE2Dhisc2ayavNphPNhfdqnOTLBFak0vJg2iyl3anjg2w3ZzN9ACZrBBxtr2vj frbfrHa4Ks8mCrHyxjag1anW3Ry+ZxaXz4aN8zowVFbrB/K9oq8OGzmLP8D2SVgjrG dKAenOz1I4a4LRHAaz+SzDNKuMGUOPknfK+J7dAlUmO2zKB98lbJz9FZG/Eoz59Zlc p4oJrm8MueDLQ== Received: by cwcc.thunk.org (Postfix, from userid 15806) id A2AC415C3EBF; Wed, 20 Jul 2022 07:42:25 -0400 (EDT) Date: Wed, 20 Jul 2022 07:42:25 -0400 From: "Theodore Ts'o" To: Zorro Lang Cc: Jeremy Bongio , linux-ext4@vger.kernel.org, fstests@vger.kernel.org, "Darrick J . Wong" Subject: Re: [PATCH v5] ext4/056: add a check to make sure ext4 uuid ioctls get/set during fsstress. Message-ID: References: <20220720000256.239531-1-bongiojp@gmail.com> <20220720100949.dttc5qbmy4qziz65@zlang-mailbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220720100949.dttc5qbmy4qziz65@zlang-mailbox> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 Wed, Jul 20, 2022 at 06:09:49PM +0800, Zorro Lang wrote: > On Tue, Jul 19, 2022 at 05:02:56PM -0700, Jeremy Bongio wrote: > > +# Override the default cleanup function. > > +_cleanup() > > +{ > > + cd / > > + rm -r -f $tmp.* > > + kill -9 $fsstress_pid 2>/dev/null; > > + wait $fsstress_pid > /dev/null 2>&1 > > I think "wait" is enough. With this change, it's good to me. The kill -9 is needed, because otherwise the test will run for a **very** long time. The reason for it is because of the -n 999999 in fstress_args: > > +# Begin fsstress while modifying UUID > > +fsstress_args=$(_scale_fsstress_args -d $SCRATCH_MNT -p 15 -n 999999) > > +$FSSTRESS_PROG $fsstress_args > /dev/null 2>&1 & > > +fsstress_pid=$! We could adjust the number of loops to a more reasonable number, but then test becomes less reliable, since depending on the storage device (e.g., cheap USB thumb drive found in the checkout counter at a convenience store, vs. a high-end NVMe SSD) and the overall speed of the system, a different number of loops will be needed. Given that we're *only* using the fsstress as an antogonist while we are changing the UUID of the file system 20 times, killing the fsstress once we're done with the UUID runs is sufficient, I would argue. Also, Jeremy, it looks like you haven't updated your xfstests-dev repository in a few weeks. Since you started this project, ext4/056 has been assigned, and there has been some new helper programs added which caused patch conflicts in src/Makefile and in .gitignore. They were pretty trivial to fix up the patch conflicts (which I've done in my xfstests-dev tree), but it's best practice to rebase on top of origin/for-next and re-test just to make sure there haven't been some major change in the fstests common scripts that might catch your test out. Also, feel free to add my: Reviewed-by: Theodore Ts'o Cheers, - Ted