From patchwork Tue Feb 26 03:46:28 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: 10829373 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 982921399 for ; Tue, 26 Feb 2019 03:46:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84F7F2C181 for ; Tue, 26 Feb 2019 03:46:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 799AF2C192; Tue, 26 Feb 2019 03:46:41 +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=unavailable 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 4C4BC2C15E for ; Tue, 26 Feb 2019 03:46:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726291AbfBZDqi (ORCPT ); Mon, 25 Feb 2019 22:46:38 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:43898 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbfBZDqi (ORCPT ); Mon, 25 Feb 2019 22:46:38 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x1Q3hLfT193545; Tue, 26 Feb 2019 03:46:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=xF0cio7BK4ArUVk2cGL1WtDDWAynMa11Pu3WKm811Ok=; b=Mle+x5q8+kpKeWwaimh1NCkn9hnq2QOvJ5cwMyKsLunnVKZSqjaIJI0Ez9o2JkHuIekc 2m+NxMktM6ubU3vYVEA5oR1vMGsP+WI30iLENMbHLaSFnU1nXhSA4MoM/jghnoB7t94K YejRPM42TL3bYmAW2cPMBkgX519kdbYW6iejG4hAkg9REbdH9WzY6aDcRU3ybr+hUL/g UiQc7trr35nEICHxMsgKLuNbHczLVQUna5XhREEsRVyd3DcWKw/HQNDoFJLCnh9iwuA5 2JpWldcaWi90nSGeYm9JjDxM0yFF8nd3bx0CvlSpnFZ63oDV9+bJII5gExu9cDJm94gQ kw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2qtwku259b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Feb 2019 03:46:36 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x1Q3kTOH001947 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Feb 2019 03:46:30 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x1Q3kTGr018304; Tue, 26 Feb 2019 03:46:29 GMT Received: from localhost (/10.159.244.120) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 25 Feb 2019 19:46:29 -0800 Date: Mon, 25 Feb 2019 19:46:28 -0800 From: "Darrick J. Wong" To: guaneryu@gmail.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org Subject: [PATCH 3/2] xfs/010: use correct type for finobt corrupting Message-ID: <20190226034628.GB7159@magnolia> References: <155114852926.9683.4048206997940455508.stgit@magnolia> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <155114852926.9683.4048206997940455508.stgit@magnolia> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9178 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=986 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902260026 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 Use 'type finobt' for corrupting the finobt. Signed-off-by: Darrick J. Wong Reviewed-by: Allison Henderson --- tests/xfs/010 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/xfs/010 b/tests/xfs/010 index ee1595c8..e220a651 100755 --- a/tests/xfs/010 +++ b/tests/xfs/010 @@ -63,14 +63,14 @@ _corrupt_finobt_records() _filter_dbval` # Corrupt a freecount value. This should never exceed 64. - $XFS_DB_PROG -x -c "fsb $free_root" -c "type inobt" \ + $XFS_DB_PROG -x -c "fsb $free_root" -c "type finobt" \ -c "write recs[1].freecount 70" $dev # Create a corrupted non-free record, which should never appear in the # finobt. - $XFS_DB_PROG -x -c "fsb $free_root" -c "type inobt" \ + $XFS_DB_PROG -x -c "fsb $free_root" -c "type finobt" \ -c "write recs[2].freecount 0" $dev - $XFS_DB_PROG -x -c "fsb $free_root" -c "type inobt" \ + $XFS_DB_PROG -x -c "fsb $free_root" -c "type finobt" \ -c "write recs[2].free 0" $dev }