From patchwork Wed Dec 18 01:19:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 11299265 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0C0DC13B6 for ; Wed, 18 Dec 2019 01:19:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E7AF821835 for ; Wed, 18 Dec 2019 01:19:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726540AbfLRBTw (ORCPT ); Tue, 17 Dec 2019 20:19:52 -0500 Received: from mx2.suse.de ([195.135.220.15]:49730 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726205AbfLRBTw (ORCPT ); Tue, 17 Dec 2019 20:19:52 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 7A563ABCD for ; Wed, 18 Dec 2019 01:19:50 +0000 (UTC) From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 1/6] btrfs-progs: tests: Add --force for repair command Date: Wed, 18 Dec 2019 09:19:37 +0800 Message-Id: <20191218011942.9830-2-wqu@suse.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191218011942.9830-1-wqu@suse.com> References: <20191218011942.9830-1-wqu@suse.com> MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Since commit e388bf38 ("btrfs-progs: check: warn users about the possible dangers of --repair") `btrfs check --repair` will wait 10 seconds before really repair the fs. This hugely slow down the fsck tests. Add --force for check_image() Signed-off-by: Qu Wenruo --- tests/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common b/tests/common index ca098444..605cf72c 100644 --- a/tests/common +++ b/tests/common @@ -331,7 +331,7 @@ check_image() "$TOP/btrfs" check "$image" >> "$RESULTS" 2>&1 [ $? -eq 0 ] && _fail "btrfs check should have detected corruption" - run_check "$TOP/btrfs" check --repair "$image" + run_check "$TOP/btrfs" check --repair --force "$image" run_check "$TOP/btrfs" check "$image" }