From patchwork Tue Mar 20 03:08:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 10296165 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 D0B6360385 for ; Tue, 20 Mar 2018 03:08:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1047290E0 for ; Tue, 20 Mar 2018 03:08:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5D04290F9; Tue, 20 Mar 2018 03:08:50 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, 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 5DDD5290E0 for ; Tue, 20 Mar 2018 03:08:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751310AbeCTDIt (ORCPT ); Mon, 19 Mar 2018 23:08:49 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:37652 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751022AbeCTDIt (ORCPT ); Mon, 19 Mar 2018 23:08:49 -0400 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 w2K2Z5IW068417; Tue, 20 Mar 2018 03:08:46 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-2017-10-26; bh=S9IOZK2U8wmaVFxJbOMhuAx0epR9kTeKsbHtXI1Gly8=; b=OxhHh5UzbJSIU91FAOIcGaDagb35ccWMbtE4IaFvlaQqkhsajZb7NStDD1p9MrCT2i3w XO64sh4OeibUUs91IhMqVc0PA+FRniRwnbmJ/Th2cTt+TWHWLUhWH2k/d/v0T5Y50Wak /1qhj9v9kQVqpO9au54cOQrnfQylJlosIkLZTLhT5he73ihwYVCRurFS6cme1vf7Yn0S QT5mQsV6kh5vkj4haFS4s5a5v4uJ7ALYzB219ARLSloYSej0r04SLYBcyFPGq5nLuzYX qlTC8/4J6m8dehGvnPtqSSQkNsd51CacKuWO61YLbR+DLRjZ5GNfUSm6SN2NrMSYxxRs qQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2gtsn5g20p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 03:08:46 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2K38jcZ008806 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 03:08:45 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2K38jGI031909; Tue, 20 Mar 2018 03:08:45 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 19 Mar 2018 20:08:45 -0700 Subject: [PATCH 4/4] mkfs: enable sparse inodes by default From: "Darrick J. Wong" To: sandeen@redhat.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org Date: Mon, 19 Mar 2018 20:08:44 -0700 Message-ID: <152151532462.18312.14450864420601203976.stgit@magnolia> In-Reply-To: <152151529988.18312.2660325658864402943.stgit@magnolia> References: <152151529988.18312.2660325658864402943.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8837 signatures=668693 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=549 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803200006 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Darrick J. Wong Enable the sparse inode feature by default. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen --- mkfs/xfs_mkfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 1ca6a2d..78d0ce5 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -1996,7 +1996,7 @@ _("finobt not supported without CRC support\n")); } cli->sb_feat.finobt = false; - if (cli->sb_feat.spinodes) { + if (cli->sb_feat.spinodes && cli_opt_set(&iopts, I_SPINODES)) { fprintf(stderr, _("sparse inodes not supported without CRC support\n")); usage(); @@ -3811,7 +3811,7 @@ main( .crcs_enabled = true, .dirftype = true, .finobt = true, - .spinodes = false, + .spinodes = true, .rmapbt = false, .reflink = false, .parent_pointers = false,