From patchwork Tue Oct 16 07:29:15 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: 1599151 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 0A20E3FD4F for ; Tue, 16 Oct 2012 07:29:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754826Ab2JPH3u (ORCPT ); Tue, 16 Oct 2012 03:29:50 -0400 Received: from mail-da0-f46.google.com ([209.85.210.46]:59459 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754632Ab2JPH3t (ORCPT ); Tue, 16 Oct 2012 03:29:49 -0400 Received: by mail-da0-f46.google.com with SMTP id n41so3027449dak.19 for ; Tue, 16 Oct 2012 00:29:48 -0700 (PDT) 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=X4hlq5wdpFVPzxOtYXBZ2ee47sjCvWQ9ik1JVDbPpbo=; b=pEBflYUDxqgLbG5/74tTOkMRlkLLRQ/3IBIBckGX1Yuy4l0mBWHWMKPZPcSj//ODmg XRIEFSt9jbAAZWrDojrWIOA1bse5StyMcjC6a5UED9UFwzk6+wRzzVwJl0xh8ZZ3vRyQ Mh3sBc5BEiI7J+H58TzSj7iod/RyIQrskF851/OHx0tTvLV3YGxxZBwOZ2bQ+WlTfVaf sC48ClyIOmEPOpZHaBn55C+udP6gd8/1x4LWPsxoZEW+toEsNMf42BpRmoBqOknBW8as btVZZ9+zMO7s72o4EP32nJaNqH6IWJbqq3J7kwdFfGLZ/s1JgtuZoajgQ9eh7AjaLrYS yvgw== Received: by 10.68.217.202 with SMTP id pa10mr45128546pbc.15.1350372588922; Tue, 16 Oct 2012 00:29:48 -0700 (PDT) Received: from crossover.org ([202.108.130.138]) by mx.google.com with ESMTPS id rr6sm10361262pbc.47.2012.10.16.00.29.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 16 Oct 2012 00:29:47 -0700 (PDT) Message-ID: <507D0CCB.5070007@gmail.com> Date: Tue, 16 Oct 2012 15:29:15 +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] btrfs-progs: add -V description in print_usage Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org mkfs supports the option -V/--version. Add its description to print_usage(). Signed-off-by: Wang Sheng-Hui --- mkfs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/mkfs.c b/mkfs.c index 47f0c9c..2cc6051 100644 --- a/mkfs.c +++ b/mkfs.c @@ -349,6 +349,7 @@ static void print_usage(void) fprintf(stderr, "\t -s --sectorsize min block allocation\n"); fprintf(stderr, "\t -r --rootdir the source directory\n"); fprintf(stderr, "\t -K --nodiscard do not perform whole device TRIM\n"); + fprintf(stderr, "\t -V --version Print the mkfs.btrfs version and exit\n"); fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); exit(1); }