From patchwork Tue Jan 29 16:17:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 10786571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C0EEC1390 for ; Tue, 29 Jan 2019 16:17:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF7D42D2DB for ; Tue, 29 Jan 2019 16:17:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A10AF2D320; Tue, 29 Jan 2019 16:17:29 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY 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 43E9E2D2DB for ; Tue, 29 Jan 2019 16:17:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727839AbfA2QR3 (ORCPT ); Tue, 29 Jan 2019 11:17:29 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:52612 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfA2QR2 (ORCPT ); Tue, 29 Jan 2019 11:17:28 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0TGDtHg046998; Tue, 29 Jan 2019 16:17:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=F40tSpqFiyY5/UA2xZDQgfW3/ZGpyOUrEttYNphSCWY=; b=i43r1vCLjDfKNETbcHYwZmMUuRvDbF2fwks8q69twiTgrmogC+0Ir9ijTCnBcy2+p0N4 RQYYTrXPHl5HjiQqaGx7EC5+b5nzpzpPg8A97/78pY8cbnTXucUUGAH3L7UW3eja34ku hPOSbR3CpADCO0p/l0MoMhB8UY6wVissLjsD93ACwidCQjhRq603wDtmjMwnjKXVEXbV UFdHO02G4KNiATpR77v/Q5iStYwcjFBn8tvK4JELK9/PtFCRWQQ5S4GX+f6ran5DDyQD jgpPABWAQnef7tbbgJvJCWwZU4Ng8ZGJxPpSD5RsZpAyk16/6pSwontA5DSSC0OAsOyD qw== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2q8eyuddw8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Jan 2019 16:17:26 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x0TGHK21024040 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Jan 2019 16:17:20 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x0TGHKpH009734; Tue, 29 Jan 2019 16:17:20 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 29 Jan 2019 08:17:20 -0800 Subject: [PATCH 2/4] xfs/138: format the scratch device before using it From: "Darrick J. Wong" To: guaneryu@gmail.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org Date: Tue, 29 Jan 2019 08:17:19 -0800 Message-ID: <154877863906.9277.11927709578869134810.stgit@magnolia> In-Reply-To: <154877863279.9277.4463697450629081138.stgit@magnolia> References: <154877863279.9277.4463697450629081138.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9150 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=907 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901290122 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Darrick J. Wong Format the scratch device before using it, or else xfs_db will fail, particularly if the previous test left a corrupt fs behind. Signed-off-by: Darrick J. Wong --- tests/xfs/138 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/xfs/138 b/tests/xfs/138 index 36490e6a..41988530 100755 --- a/tests/xfs/138 +++ b/tests/xfs/138 @@ -38,6 +38,7 @@ echo This is file B ENDL echo "Test with -c" +_scratch_mkfs > $seqres.full 2>&1 _scratch_xfs_db -c "sb 0" -c "p magicnum" -c "source $tmp.a" -c "p magicnum" | sed -e 's/0x58465342/XFS_MAGIC/g' echo "Test with interactive"