From patchwork Wed May 21 08:03:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gui Hecheng X-Patchwork-Id: 4214981 X-Patchwork-Delegate: dave@jikos.cz 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 49D879F32B for ; Wed, 21 May 2014 08:09:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 47298201FE for ; Wed, 21 May 2014 08:09:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5BECD202A7 for ; Wed, 21 May 2014 08:09:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751163AbaEUIJQ (ORCPT ); Wed, 21 May 2014 04:09:16 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:30110 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751411AbaEUIJN (ORCPT ); Wed, 21 May 2014 04:09:13 -0400 X-IronPort-AV: E=Sophos;i="4.98,878,1392134400"; d="scan'208";a="30808872" Received: from unknown (HELO edo.cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 21 May 2014 16:06:10 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id s4L88iaO015272 for ; Wed, 21 May 2014 16:08:44 +0800 Received: from localhost.localdomain (10.167.226.111) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.146.2; Wed, 21 May 2014 16:08:48 +0800 From: Gui Hecheng To: CC: Gui Hecheng Subject: [PATCH] btrfs-progs: clarify manpage for btrfstune seeding option Date: Wed, 21 May 2014 16:03:57 +0800 Message-ID: <1400659437-13231-1-git-send-email-guihc.fnst@cn.fujitsu.com> X-Mailer: git-send-email 1.8.1.4 MIME-Version: 1.0 X-Originating-IP: [10.167.226.111] Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 The btrfstune -S option accepts a positive value to enable seeding, and a zero to disable seeding, negtive is not allowed. Add "positive, zero, negative" sentences to btrfstune manpage. Signed-off-by: Gui Hecheng --- Documentation/btrfstune.txt | 5 +++-- btrfstune.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/btrfstune.txt b/Documentation/btrfstune.txt index bf4bfce..89d5996 100644 --- a/Documentation/btrfstune.txt +++ b/Documentation/btrfstune.txt @@ -17,8 +17,9 @@ enable/disable some extended features for btrfs. OPTIONS ------- -S :: -Updates the seeding value, it forces a fs readonly so that you can use it to -build other filesystems. +Updates the seeding value. +A positive value will enable seeding, zero will disable seeding, negtive is not allowed. +Enable seeding forces a fs readonly so that you can use it to build other filesystems. -r:: Enable extended inode refs. -x:: diff --git a/btrfstune.c b/btrfstune.c index 2c26fe9..3f2f0cd 100644 --- a/btrfstune.c +++ b/btrfstune.c @@ -100,9 +100,9 @@ static int enable_skinny_metadata(struct btrfs_root *root) static void print_usage(void) { fprintf(stderr, "usage: btrfstune [options] device\n"); - fprintf(stderr, "\t-S value\tenable/disable seeding\n"); + fprintf(stderr, "\t-S value\tpositive value will enable seeding, zero to disable, negative is not allowed\n"); fprintf(stderr, "\t-r \t\tenable extended inode refs\n"); - fprintf(stderr, "\t-x enable skinny metadata extent refs\n"); + fprintf(stderr, "\t-x \t\tenable skinny metadata extent refs\n"); } int main(int argc, char *argv[])