linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Options to set fixed unit for `filesystem df`
@ 2014-08-14 19:24 Nils Steinger
  2014-08-14 19:24 ` [PATCH] Add options to use a fixed unit for `filesystem df` instead of determining it automatically Nils Steinger
  2014-08-14 21:13 ` [PATCH v2] Options to set fixed unit for `filesystem df` Nils Steinger
  0 siblings, 2 replies; 4+ messages in thread
From: Nils Steinger @ 2014-08-14 19:24 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Nils Steinger

Currently, `btrfs filesystem df` uses the pretty_size() function, which
automatically selects a unit to display a size in, e.g. 1024 bytes will be
displayed as "1.00KiB".
This makes parsing the output of `filesystem df` unnecessarily hard, so I've
added the options -b, -k, -m, and -g to get the output in bytes, kibi-, mebi-,
and gibibytes respectively.

Nils Steinger (1):
  Add options to use a fixed unit for `filesystem df` instead of
    determining it automatically.

 cmds-filesystem.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++++-------
 utils.c           | 30 +++++++++++++++++++++++++++
 utils.h           |  8 +++++++
 3 files changed, 93 insertions(+), 7 deletions(-)

-- 
1.9.1


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

end of thread, other threads:[~2014-08-14 21:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 19:24 [PATCH] Options to set fixed unit for `filesystem df` Nils Steinger
2014-08-14 19:24 ` [PATCH] Add options to use a fixed unit for `filesystem df` instead of determining it automatically Nils Steinger
2014-08-14 21:13 ` [PATCH v2] Options to set fixed unit for `filesystem df` Nils Steinger
2014-08-14 21:13   ` [PATCH v2] Add options to use a fixed unit for `filesystem df` instead of determining it automatically Nils Steinger

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).