aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-device.c
diff options
context:
space:
mode:
authorGoffredo Baroncelli <kreijack@libero.it>2014-02-13 20:20:12 +0100
committerDavid Sterba <dsterba@suse.cz>2014-12-04 16:48:09 +0100
commit330903d4eec6d0d0bf25f7052ee10300d3791d0c (patch)
tree4c737e8cc3dc4fc57223379acf380e768d22ad75 /cmds-device.c
parent9002666a2b5d826f81dfdfd2051b3472db8d5640 (diff)
downloadbtrfs-progs-330903d4eec6d0d0bf25f7052ee10300d3791d0c.tar.gz
btrfs-progs-330903d4eec6d0d0bf25f7052ee10300d3791d0c.tar.xz
btrfs-progs-330903d4eec6d0d0bf25f7052ee10300d3791d0c.zip
btrfs-progs: Add btrfs device disk-usage command
Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-device.c')
-rw-r--r--cmds-device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds-device.c b/cmds-device.c
index 6cd41e1..5b153f1 100644
--- a/cmds-device.c
+++ b/cmds-device.c
@@ -28,6 +28,7 @@
#include "ctree.h"
#include "ioctl.h"
#include "utils.h"
+#include "cmds-fi-disk_usage.h"
#include "commands.h"
@@ -456,6 +457,8 @@ const struct cmd_group device_cmd_group = {
{ "scan", cmd_scan_dev, cmd_scan_dev_usage, NULL, 0 },
{ "ready", cmd_ready_dev, cmd_ready_dev_usage, NULL, 0 },
{ "stats", cmd_dev_stats, cmd_dev_stats_usage, NULL, 0 },
+ { "disk-usage", cmd_device_disk_usage,
+ cmd_device_disk_usage_usage, NULL, 0 },
NULL_CMD_STRUCT
}
};