summaryrefslogtreecommitdiff
path: root/btrfs.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2010-01-13 18:21:23 +0000
committerChris Mason <chris.mason@oracle.com>2010-03-14 08:34:38 -0400
commitb72e4c4e1923b908b7242c7d6646391eb4043a93 (patch)
treefcda70fe7a8dd87a98623655f080f3c265bb3128 /btrfs.c
parent35401ac1902544637ac26634e139f04ae31c2cbf (diff)
Btrfs-progs: add btrfs filesystem df to print space info
This goes along with the new space info ioctl. This will spit out the space info all nice and pretty with the type, it's flags (DUP, RAID) and how much space is in that group and how much is in use. Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'btrfs.c')
-rw-r--r--btrfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/btrfs.c b/btrfs.c
index ce7955b9..f1a8806c 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -83,6 +83,10 @@ static struct Command commands[] = {
"Show the info of a btrfs filesystem. If no <uuid> or <label>\n"
"is passed, info of all the btrfs filesystem are shown."
},
+ { do_df_filesystem, 1,
+ "filesystem df", "<path>\n"
+ "Show space usage information for a mount point\n."
+ },
{ do_balance, 1,
"filesystem balance", "<path>\n"
"Balance the chunks across the device."