From patchwork Wed Jun 29 18:10:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hubert Kario X-Patchwork-Id: 929982 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5TIABux012038 for ; Wed, 29 Jun 2011 18:10:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757457Ab1F2SKH (ORCPT ); Wed, 29 Jun 2011 14:10:07 -0400 Received: from dervish.wsisiz.edu.pl ([213.135.44.54]:11826 "EHLO dervish.wsisiz.edu.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757484Ab1F2SKH (ORCPT ); Wed, 29 Jun 2011 14:10:07 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by dervish.wsisiz.edu.pl (Postfix) with ESMTP id 59889C5426F for ; Wed, 29 Jun 2011 20:10:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wit.edu.pl; h= message-id:content-transfer-encoding:content-type:content-type :mime-version:user-agent:date:date:subject:subject:from:from :received:received; s=amavisd; t=1309371004; bh=ntYGDIE4agHi+oID 5FgtBLhvXrRd5zEk+0CBtnRHdF8=; b=aA1TkcepGbuvRBzSMN7rQZOPGnGq5pUT u7iGECx4abH+LfOC4U4trSwkxhkfzvupNOMotxh7TEVoscPr/e5uWD+CNm+Iu0+q N8KWbRry751HFljZjc9ID6dv7VcRt9LQg/PqXJvs/jZBKPb1KOz63PgeRBEFLcF4 3es2qbxbhzM= X-Virus-Scanned: amavisd-new at wit.edu.pl Received: from dervish.wsisiz.edu.pl ([127.0.0.1]) by localhost (dervish.wsisiz.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GOd7WBncYWuZ for ; Wed, 29 Jun 2011 20:10:04 +0200 (CEST) Received: from bursa23.localnet (bursa22.wsisiz.edu.pl [213.135.49.150]) by dervish.wsisiz.edu.pl (Postfix) with ESMTPSA id 01EF1C54266 for ; Wed, 29 Jun 2011 20:10:04 +0200 (CEST) From: Hubert Kario To: "linux-btrfs" Subject: [PATCH] initialize all fields of commands[] struct Date: Wed, 29 Jun 2011 20:10:03 +0200 User-Agent: KMail/1.13.7 (Linux/2.6.38-ARCH; KDE/4.6.3; i686; ; ) MIME-Version: 1.0 Message-Id: <201106292010.03582.kario@wit.edu.pl> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 29 Jun 2011 18:10:11 +0000 (UTC) some help messages don't use advanced help message (shown when invoked as `btrfs command subcommand --help`) initialize them to NULL (meaning "use regular help message"). Signed-off-by: Hubert Kario --- this patch is for the branch integration-20110626 in http://git.darksatanic.net/repo/btrfs-progs-unstable.git/ integration-20110626 btrfs.c | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/btrfs.c b/btrfs.c index e117172..8875911 100644 --- a/btrfs.c +++ b/btrfs.c @@ -132,29 +132,35 @@ static struct Command commands[] = { }, { do_balance_cancel, 1, "balance cancel", "\n" - "Cancel the balance operation running on ." + "Cancel the balance operation running on .", + NULL }, { do_scrub_start, -1, "scrub start", "[-Bdqr] |\n" - "Start a new scrub." + "Start a new scrub.", + NULL }, { do_scrub_cancel, 1, "scrub cancel", "|\n" - "Cancel a running scrub." + "Cancel a running scrub.", + NULL }, { do_scrub_resume, -1, "scrub resume", "[-Bdqr] |\n" - "Resume previously canceled or interrupted scrub." + "Resume previously canceled or interrupted scrub.", + NULL }, { do_scrub_status, -1, "scrub status", "[-d] |\n" - "Show status of running or finished scrub." + "Show status of running or finished scrub.", + NULL }, { do_change_label, -1, "filesystem label", " []\n" "With one argument, get the label of filesystem on .\n" "If is passed, set the filesystem label to .\n" - "The filesystem must be unmounted.\n" + "The filesystem must be unmounted.\n", + NULL }, { do_scan, 999, "device scan", "[--all-devices| [..]\n"