From patchwork Mon May 14 05:49:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 10396737 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7B2386038F for ; Mon, 14 May 2018 05:48:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF71928DAB for ; Mon, 14 May 2018 05:48:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C401C28F8C; Mon, 14 May 2018 05:48:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64B3328DAB for ; Mon, 14 May 2018 05:48:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751934AbeENFsd (ORCPT ); Mon, 14 May 2018 01:48:33 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:40416 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871AbeENFsc (ORCPT ); Mon, 14 May 2018 01:48:32 -0400 Received: by mail-wr0-f196.google.com with SMTP id v60-v6so10846647wrc.7; Sun, 13 May 2018 22:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4XN9ZQLgVDl+7wTPqKFQLT/HyWVY70DzVigVJz74ZCA=; b=MTEFQku8l+MH9+THBIOPn/Q9FOdkBr88/MgyNeafV/hzNgt1FPECuPUQq8Re2NlWA/ 7yZFD4zMGZtS8drKm+rWQVJwtkRwAaqQq8KKOBFq537npfZ0MjImjTx+EBXLXheYhSXp NAsFDB+EKvO/QgKl6O7XwUJtHxgJVMKAg/Gj2D7JOYFdvfr/uGqmLUGRHipYW20R+amG QBoLFdHn9L92L7EFZSrvj0TRmUNbyDy47AxEErop10BCPDHzX3quWdWx8hu5hTp8hbQw DwAXB4d2x+ahmGCrI+U+9Y7UFbdUn6k3rwm1L14t+2Zd+TFymocx5w31KWUo66hNIlMU GJRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4XN9ZQLgVDl+7wTPqKFQLT/HyWVY70DzVigVJz74ZCA=; b=Gr1TiGCKfRtDxUgVA2Vm67iYTAmMsY9YPI9bqvwL2eFbSD58FfofAv7KAw9dUPRwHe E5i01MFe+JOmFHE8KDxbqOuex5zYyIoLGwY+oQSacoOJIpLcWo3hDuzIdzbS32ZXBfGy 3O16GLgLH0FZPW8H4bf0feaIY1XtJBhl2e9ll7+mAAVvhnWtK0S8yI7ieBYJuMzxmG00 mGKgr6DAobb7v/yCql7nbRQx0+DhSenvUyXZ532ZLgLuKvwlMMhyCdiw8N6VVhHlCdL6 PWdVRio0ynMj6UTHV0FJ85fB/o1Wm57nBL1x3LEWb9b9BDDscmIvKRpQlwKj1FDTCDpO Sc+g== X-Gm-Message-State: ALKqPwfzQsMVowHuvZ5/f37ARMAzhoeX++KcbweYau4FlXeoxpIB2ykR HbplnTXlAXKbm0E3bzhz6bi2aA== X-Google-Smtp-Source: AB8JxZrtkYTgTcdHhRICpxpuyLPZTlmBaujqgq7nTTlb647IUpbS5OlA8oBU1Jn2NYbZfdL3YK718g== X-Received: by 2002:adf:8f72:: with SMTP id p105-v6mr6089256wrb.181.1526276910963; Sun, 13 May 2018 22:48:30 -0700 (PDT) Received: from localhost.localdomain ([94.230.83.122]) by smtp.gmail.com with ESMTPSA id o12-v6sm12109404wrf.31.2018.05.13.22.48.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 May 2018 22:48:30 -0700 (PDT) From: Amir Goldstein To: Eryu Guan Cc: Theodore Ts'o , fstests@vger.kernel.org, linux-ext4@vger.kernel.org Subject: [PATCH 1/3] generic/459: use xfs_freeze instead of fsfreeze Date: Mon, 14 May 2018 08:49:49 +0300 Message-Id: <1526276991-23897-2-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526276991-23897-1-git-send-email-amir73il@gmail.com> References: <1526276991-23897-1-git-send-email-amir73il@gmail.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is what all other tests use as well as _require_freeze Signed-off-by: Amir Goldstein --- tests/generic/459 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/generic/459 b/tests/generic/459 index e755cf7..22b8e62 100755 --- a/tests/generic/459 +++ b/tests/generic/459 @@ -113,7 +113,7 @@ $XFS_IO_PROG -f -d -c 'pwrite -b 1m 0 120m' $SCRATCH_MNT/f1 >>$seqres.full 2>&1 # extended. It is expected, and is only used so xfsaild is triggered to # flush AIL items, other filesystems usually get remounted as read-only during # the above write process. -fsfreeze -f $SCRATCH_MNT >>$seqres.full 2>&1 & +xfs_freeze -f $SCRATCH_MNT >>$seqres.full 2>&1 & freezeid=$! # Wait enough so xfsaild can run @@ -132,7 +132,7 @@ ret=$? # - The filesystem stays in Read-Write mode, but can be frozen/thawed # without getting stuck. if [ $ret -ne 0 ]; then - # fsfreeze failed, filesystem should reject further writes and remount + # freeze failed, filesystem should reject further writes and remount # as readonly. Sometimes the previous write process won't trigger # ro-remount, e.g. on ext3/4, do additional touch here to make sure # filesystems see the metadata I/O error. @@ -148,7 +148,7 @@ if [ $ret -ne 0 ]; then else # Try to thaw the filesystem, and complete test if if succeed. # NOTE: This will hang on affected XFS filesystems. - fsfreeze -u $SCRATCH_MNT >>$seqres.full 2>&1 + xfs_freeze -u $SCRATCH_MNT >>$seqres.full 2>&1 echo "Test OK" fi