From patchwork Sun Nov 18 02:13:20 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: 1760291 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 773AADF2A2 for ; Sun, 18 Nov 2012 02:13:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752534Ab2KRCNd (ORCPT ); Sat, 17 Nov 2012 21:13:33 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:50799 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752515Ab2KRCNd (ORCPT ); Sat, 17 Nov 2012 21:13:33 -0500 Received: by mail-pa0-f46.google.com with SMTP id hz1so2649497pad.19 for ; Sat, 17 Nov 2012 18:13: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=ufjPEYkXCiJHfcV/GnYl6+GIpv9mJGMEKdNFZqm0BAI=; b=pDMyoRpPiH8XlHLrZr13Qq5ZKhsF2MWO7thx/KQ0N9HYyHunXhjbMflDKjGpJjK4Ca WIU1XfNsGdV9qaGAKMnPEAnPalhIK2qfy4wHj5+ncM2lisI5LC9DId2tA0YNvUtohATu 0wp80fWdmLxf6sl2wsd8MZcSCKyn4ei/fcjOrOlCgRm3Uh3yUyOMseTutv8ucUcBzZSn 4ve2eSkb4H70xBFbkolrW7oFew5i6T0u2Nda0DLahIIlpFNihzWaO8cGwwBwDFAQKGdR MTkZl8huYjsr4LVkSZikuFLHaIqTQ/o+WTmcQn+72p72HH75ouiybWfHkJY7/SNkxea+ PO2g== Received: by 10.68.192.5 with SMTP id hc5mr28809895pbc.16.1353204812818; Sat, 17 Nov 2012 18:13:32 -0800 (PST) Received: from crossover.org ([122.71.220.34]) by mx.google.com with ESMTPS id az8sm3644380pab.24.2012.11.17.18.13.29 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 17 Nov 2012 18:13:31 -0800 (PST) Message-ID: <50A84440.9030905@gmail.com> Date: Sun, 18 Nov 2012 10:13:20 +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: linux-btrfs@vger.kernel.org Subject: [PATCH 1/2] btrfs-progs: update options in find-root.c Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Remove the useless option "-v" and add the option "-o" in the description of usage. Signed-off-by: Wang Sheng-Hui --- find-root.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/find-root.c b/find-root.c index c0f38b8..2fb40e5 100644 --- a/find-root.c +++ b/find-root.c @@ -35,13 +35,12 @@ #include "utils.h" #include "crc32c.h" -static int verbose = 0; static u16 csum_size = 0; static u64 search_objectid = BTRFS_ROOT_TREE_OBJECTID; static void usage() { - fprintf(stderr, "Usage: find-roots [-v] \n"); + fprintf(stderr, "Usage: find-roots [-o search_objectid] \n"); } int csum_block(void *buf, u32 len) @@ -414,11 +413,8 @@ int main(int argc, char **argv) int opt; int ret; - while ((opt = getopt(argc, argv, "vo:")) != -1) { + while ((opt = getopt(argc, argv, "o:")) != -1) { switch(opt) { - case 'v': - verbose++; - break; case 'o': errno = 0; search_objectid = (u64)strtoll(optarg, NULL,