From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from linux-libre.fsfla.org ([208.118.235.54]:39978 "EHLO linux-libre.fsfla.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751677AbaH3S1K (ORCPT ); Sat, 30 Aug 2014 14:27:10 -0400 Received: from freie.home (home.lxoliva.fsfla.org [172.31.160.22]) by linux-libre.fsfla.org (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id s7UIR6ip021393 for ; Sat, 30 Aug 2014 18:27:06 GMT From: Alexandre Oliva To: linux-btrfs@vger.kernel.org Subject: btrfs: add -k option to filesystem df Date: Sat, 30 Aug 2014 15:27:00 -0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-btrfs-owner@vger.kernel.org List-ID: Introduce support for df to print sizes in KiB, easy to extend to other bases. The man page is also updated and fixed in that it made it seem like multiple paths were accepted. Signed-off-by: Alexandre Oliva --- Documentation/btrfs-filesystem.txt | 4 +++- cmds-filesystem.c | 26 +++++++++++++++++++++++--- utils.c | 29 +++++++++++++++++++++++++++-- utils.h | 1 + 4 files changed, 54 insertions(+), 6 deletions(-) diff --git a/Documentation/btrfs-filesystem.txt b/Documentation/btrfs-filesystem.txt index c9c0b00..70ba4b8 100644 --- a/Documentation/btrfs-filesystem.txt +++ b/Documentation/btrfs-filesystem.txt @@ -17,8 +17,10 @@ resizing, defragment. SUBCOMMAND ---------- -*df* [...]:: +*df* [--kbytes] :: Show space usage information for a mount point. ++ +If '-k' or '--kbytes' is passed, sizes will be printed in KiB. *show* [--mounted|--all-devices||||