From patchwork Sat Oct 13 19:27:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goffredo Baroncelli X-Patchwork-Id: 1589301 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 CBDE440E19 for ; Sat, 13 Oct 2012 19:27:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754065Ab2JMT1L (ORCPT ); Sat, 13 Oct 2012 15:27:11 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:51930 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754027Ab2JMT1F (ORCPT ); Sat, 13 Oct 2012 15:27:05 -0400 Received: by mail-ee0-f46.google.com with SMTP id b15so2406769eek.19 for ; Sat, 13 Oct 2012 12:27:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=bMcYS/SPgcSr6YtQjcFAvNq/rTMmB3JFIpdPXxxMrUg=; b=ToUTKszjWjgJ4+0fphOvxjqqdytz0mgIvulMFHUcXOpcKs/2c/FBGInQ/ZU/jzJTaa RSXexExXLv7h1z4MR2qbS15mVyxP3qaEIgnmXrIwg06NliRtDORFQUNgLRS5jI0kBs2b ERZP08kn8jBx+eKm1lLafJH9JHHtgN+OKxALK+4fKb3qlI76uxcZcjdALKj2M7Mq4Mf5 tAPELWFVQqM3gFem3xs8pTV3Zp5B4XVQ7I3v3k1pGaEmSjrMYvt7nnbb6PTvuOVgb3oi zioNpFudH1obnI0yGvrwUrkTI0WDNtKJ1hQvSVmiIxNyyRjceoRsTIXwV3YKn9o9lIV/ 7Srg== Received: by 10.14.225.73 with SMTP id y49mr10752613eep.25.1350156424414; Sat, 13 Oct 2012 12:27:04 -0700 (PDT) Received: from venice..bhome (host103-133-static.242-95-b.business.telecomitalia.it. [95.242.133.103]) by mx.google.com with ESMTPS id x42sm17352279eel.11.2012.10.13.12.27.03 (version=SSLv3 cipher=OTHER); Sat, 13 Oct 2012 12:27:04 -0700 (PDT) From: Goffredo Baroncelli To: kreijack@gmail.com Cc: Hugo Mills , Chris Mason , linux-btrfs@vger.kernel.org, David Sterba , Martin Steigerwald , Goffredo Baroncelli Subject: [PATCH 3/3] Document the use of BTRFS_UNIT in man page. Date: Sat, 13 Oct 2012 21:27:16 +0200 Message-Id: <1350156436-14439-4-git-send-email-kreijack@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1350156436-14439-1-git-send-email-kreijack@gmail.com> References: <1350156436-14439-1-git-send-email-kreijack@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Goffredo Baroncelli --- man/btrfs.8.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 9222580..fe7a5e3 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -355,6 +355,20 @@ not enough to read all the resolved results. The max value one can set is 64k. \fBbtrfs\fR returns a zero exist status if it succeeds. Non zero is returned in case of failure. +.SH ENVIRONMENTAL VARIABLES +\fBBTRFS_UNIT\fR set the kind of suffix for the number output by \fBbtrfs\fR. +Possible values: +.RS +.IP BTRFS_UNIT=IEC +The number have the IEC suffix: e.g. KiB = 1024 bytes, MiB = 1024 KiB... +.IP BTRFS_UNIT=SI +The number have the SI suffix: e.g. KB = 1000 bytes, MB = 1000 KB... +.IP BTRFS_UNIT=COMPACT +For compatibility; the number have the SI suffix but the unit is multiply +of power of two. E.g. KB = 1024 bytes, MB = 1024 KiB... +There is no space between the number and the suffix. +.RE + .SH AVAILABILITY .B btrfs is part of btrfs-progs. Btrfs filesystem is currently under heavy development,