From patchwork Thu Aug 1 05:35:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Shilong X-Patchwork-Id: 2836747 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B8B119F7D6 for ; Thu, 1 Aug 2013 05:37:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF7D5200FF for ; Thu, 1 Aug 2013 05:37:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1033A200F7 for ; Thu, 1 Aug 2013 05:37:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754032Ab3HAFhJ (ORCPT ); Thu, 1 Aug 2013 01:37:09 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:52312 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753910Ab3HAFhF (ORCPT ); Thu, 1 Aug 2013 01:37:05 -0400 X-IronPort-AV: E=Sophos;i="4.89,791,1367942400"; d="scan'208";a="8084175" Received: from unknown (HELO tang.cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 01 Aug 2013 13:33:59 +0800 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id r715avKV009257 for ; Thu, 1 Aug 2013 13:37:00 +0800 Received: from localhost.localdomain ([10.167.226.104]) by fnstmail02.fnst.cn.fujitsu.com (Lotus Domino Release 8.5.3) with ESMTP id 2013080113344357-317043 ; Thu, 1 Aug 2013 13:34:43 +0800 From: Wang Shilong To: linux-btrfs@vger.kernel.org Subject: [PATCH 08/10] btrfs-progs: Update usage string of btrfs-map-logical Date: Thu, 1 Aug 2013 13:35:32 +0800 Message-Id: <1375335334-32540-8-git-send-email-wangsl.fnst@cn.fujitsu.com> X-Mailer: git-send-email 1.8.0.1 In-Reply-To: <1375335334-32540-1-git-send-email-wangsl.fnst@cn.fujitsu.com> References: <1375335334-32540-1-git-send-email-wangsl.fnst@cn.fujitsu.com> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/08/01 13:34:43, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/08/01 13:34:46, Serialize complete at 2013/08/01 13:34:46 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP btrfs-map-logical supports both short and long options, and also every option should follow an arg,fix it. Signed-off-by: Wang Shilong Signed-off-by: Qu Wenruo --- btrfs-map-logical.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c index b9635f7..e46d812 100644 --- a/btrfs-map-logical.c +++ b/btrfs-map-logical.c @@ -86,10 +86,14 @@ struct extent_buffer *debug_read_block(struct btrfs_root *root, u64 bytenr, static void print_usage(void) { fprintf(stderr, "usage: btrfs-map-logical [options] device\n"); - fprintf(stderr, "\t-l Logical extent to map\n"); - fprintf(stderr, "\t-c Copy of the extent to read (usually 1 or 2)\n"); - fprintf(stderr, "\t-o Output file to hold the extent\n"); - fprintf(stderr, "\t-b Number of bytes to read\n"); + fprintf(stderr, + "\t-l|--logical Logical extent to map\n"); + fprintf(stderr, + "\t-c|--copy Copy of the extent to read (usually 1 or 2)\n"); + fprintf(stderr, + "\t-o|--output Output file to hold the extent\n"); + fprintf(stderr, + "\t-b|--bytes Number of bytes to read\n"); exit(1); }