linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][V1][BTRFS-PROGS] Replace the units from KB to KiB..
@ 2012-10-13 19:27 Goffredo Baroncelli
  2012-10-13 19:27 ` [PATCH 1/3] Add support for different unit Goffredo Baroncelli
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Goffredo Baroncelli @ 2012-10-13 19:27 UTC (permalink / raw)
  To: kreijack
  Cc: Hugo Mills, Chris Mason, linux-btrfs, David Sterba,
	Martin Steigerwald

Hi All,

several people asked to update the units showed by the "btrfs" tool
form the SI ones (KB, MB, GB...) to the IEC ones (KiB, MiB...).

The aim of this patch is to allow the user to choice which units
are showed. Depending by the BTRFS_UNIT environmental variable,
the following units are showed:

    BTRFS_UNIT=SI the suffix is KB for 1000bytes, MB for 10^6 bytes...
    BTRFS_UNIT=IEC the suffix is KiB for 1024bytes, MiB for 1024 KiB ...
    BTRFS_UNIT=COMPACT the suffix is KB for 1024 bytes, MB for 1024 KiB;
                       no space between the number and the suffix.

BR
G.Baroncelli

Signed-off-by Goffredo Baroncelli <kreijack@gmail.com>




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-15 17:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-13 19:27 [PATCH][V1][BTRFS-PROGS] Replace the units from KB to KiB Goffredo Baroncelli
2012-10-13 19:27 ` [PATCH 1/3] Add support for different unit Goffredo Baroncelli
2012-10-15 11:47   ` Martin Steigerwald
2012-10-13 19:27 ` [PATCH 2/3] Deleted the byte prefix with pretty_sizes() Goffredo Baroncelli
2012-10-13 19:27 ` [PATCH 3/3] Document the use of BTRFS_UNIT in man page Goffredo Baroncelli
2012-10-15 11:58 ` [PATCH][V1][BTRFS-PROGS] Replace the units from KB to KiB Martin Steigerwald
2012-10-15 17:02   ` Goffredo Baroncelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).