[PATCH][V1][BTRFS-PROGS] Replace the units from KB to KiB..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>



--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux