From patchwork Mon Jan 4 11:29:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 11996555 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8CEBC433E0 for ; Mon, 4 Jan 2021 11:31:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5417321D93 for ; Mon, 4 Jan 2021 11:31:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726129AbhADLb0 (ORCPT ); Mon, 4 Jan 2021 06:31:26 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:60905 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbhADLb0 (ORCPT ); Mon, 4 Jan 2021 06:31:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609759800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=o0rYxrys7aX8Dw2VlZgK6yTn5NwLi7xdzArLwaQ5JFY=; b=gA24hQ2Tt83GRfTvxcGTfzUaDZMDZWjrNjvrqQ0VmZM1uH1QssOcAX5bWXICpwOCyzMZYe uL6u188/8VAJq+TV/dgnohC97RVNzKnT6t04YOtyRv+nn7d/8kJsG8Ow2P7yxbellDlgHe 4WCJwpQQXP3ETXosxmZAIyoFzh+3WeM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-321-oFzkTcsUNnuiYOlwfYr_Tw-1; Mon, 04 Jan 2021 06:29:58 -0500 X-MC-Unique: oFzkTcsUNnuiYOlwfYr_Tw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E391B1005504 for ; Mon, 4 Jan 2021 11:29:57 +0000 (UTC) Received: from bogon.redhat.com (ovpn-14-10.pek2.redhat.com [10.72.14.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id F154F60CCE for ; Mon, 4 Jan 2021 11:29:56 +0000 (UTC) From: Zorro Lang To: linux-xfs@vger.kernel.org Subject: [PATCH] mkfs: fix wrong inobtcount usage error output Date: Mon, 4 Jan 2021 19:29:52 +0800 Message-Id: <20210104112952.328169-1-zlang@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org When mkfs fails, it shows: ... /* metadata */ [-m crc=0|1,finobt=0|1,uuid=xxx,rmapbt=0|1,reflink=0|1,\n\ inobtcnt=0|1,bigtime=0|1]\n\ ... The "inobtcnt=0|1" is wrong usage, it must be inobtcount, there's not an alias. To avoid misadvice, fix it. Signed-off-by: Zorro Lang Reviewed-by: Eric Sandeen --- mkfs/xfs_mkfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 47acc127..0581843f 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -928,7 +928,7 @@ usage( void ) /* blocksize */ [-b size=num]\n\ /* config file */ [-c options=xxx]\n\ /* metadata */ [-m crc=0|1,finobt=0|1,uuid=xxx,rmapbt=0|1,reflink=0|1,\n\ - inobtcnt=0|1,bigtime=0|1]\n\ + inobtcount=0|1,bigtime=0|1]\n\ /* data subvol */ [-d agcount=n,agsize=n,file,name=xxx,size=num,\n\ (sunit=value,swidth=value|su=num,sw=num|noalign),\n\ sectsize=num\n\