From patchwork Wed Nov 14 07:46:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Sheng-Hui X-Patchwork-Id: 1739641 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id BE3BBDF264 for ; Wed, 14 Nov 2012 07:46:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932546Ab2KNHqd (ORCPT ); Wed, 14 Nov 2012 02:46:33 -0500 Received: from mail-ie0-f174.google.com ([209.85.223.174]:37367 "EHLO mail-ie0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756527Ab2KNHqc (ORCPT ); Wed, 14 Nov 2012 02:46:32 -0500 Received: by mail-ie0-f174.google.com with SMTP id k13so176011iea.19 for ; Tue, 13 Nov 2012 23:46:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=ogg72a2rKW5ODCBDlPsR4c69VTytAxfvdAfN5Te+pSE=; b=FZTB7ANqi29tKQHumYG0EoNVuIydJpFP8d3l30j6HUNR1R3bl7ND8bHVYGAz4PPMGs SqxZEId8LV1B1DPMc2Jpr7iYWXOQfFYXRE7dwPUlQW0z5pathYJPf+wwLcQti3Q9Bqxf Q5/FuKf9FhaGg8ib2hYvoSUkjagVPnMMQ9pY6UqCFulQxmxhVEGu+hLawwMXp8bujKcm WfdcJUb2gTKxgukgKUq3aEj71pzPj1wq8sffLVhwKWrTtKfnlWzePX0CmyeyS0pBcNMN YH8IrU6i5SSWDCYnBIVQZEn7Q074yemgQUlLIvFX2PHyA7JLptZ1spgH/zSGVh70tNjL 72KQ== Received: by 10.50.1.200 with SMTP id 8mr992845igo.51.1352879192179; Tue, 13 Nov 2012 23:46:32 -0800 (PST) Received: from crossover.org ([122.70.30.229]) by mx.google.com with ESMTPS id we6sm698403igb.8.2012.11.13.23.46.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Nov 2012 23:46:30 -0800 (PST) Message-ID: <50A34C4D.8060403@gmail.com> Date: Wed, 14 Nov 2012 15:46:21 +0800 From: Wang Sheng-Hui User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: chris.mason@fusionio.com, linux-btrfs@vger.kernel.org Subject: [PATCH 1/2] btrfs-progs: update usage description for debug-tree.c Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org There are more options than "-e" only. Update the description for the usage. Signed-off-by: Wang Sheng-Hui --- debug-tree.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/debug-tree.c b/debug-tree.c index 94ffd8e..f6bd5d8 100644 --- a/debug-tree.c +++ b/debug-tree.c @@ -30,7 +30,15 @@ static int print_usage(void) { - fprintf(stderr, "usage: debug-tree [ -e ] device\n"); + fprintf(stderr, "usage: btrfs-debug-tree [ -e ] [ -d ] [ -r ] [ -R ]\n"); + fprintf(stderr, " [-b block_num ] device\n"); + fprintf(stderr, "\t-e : print detailed extents info\n"); + fprintf(stderr, "\t-d : print info of btrfs device and root tree dirs" + " only\n"); + fprintf(stderr, "\t-r : print info of roots only\n"); + fprintf(stderr, "\t-R : print info of roots and root backups\n"); + fprintf(stderr, "\t-b block_num : print info of the specified block" + " only\n"); fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); exit(1); }