From 1a9df1c68b1e2f479d6b73e96951ca708740c3f9 Mon Sep 17 00:00:00 2001 From: Alexander Fougner Date: Fri, 11 Mar 2016 12:49:46 +0100 Subject: [PATCH] btrfs-progs: update docs and completion for tree-stats Signed-off-by: Alexander Fougner Signed-off-by: David Sterba --- Documentation/btrfs-inspect-internal.asciidoc | 10 ++++++++++ btrfs-completion | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/btrfs-inspect-internal.asciidoc b/Documentation/btrfs-inspect-internal.asciidoc index 62d42bce..74f6dea8 100644 --- a/Documentation/btrfs-inspect-internal.asciidoc +++ b/Documentation/btrfs-inspect-internal.asciidoc @@ -136,6 +136,16 @@ inode number 2), but such subvolume does not contain any files anyway + resolve the absolute path of a the subvolume id 'subvolid' +*tree-stats* [options] :: +(needs root privileges) ++ +Print sizes and statistics of trees. ++ +`Options` ++ +-b:::: +Print raw numbers in bytes. + EXIT STATUS ----------- *btrfs inspect-internal* returns a zero exit status if it succeeds. Non zero is diff --git a/btrfs-completion b/btrfs-completion index db0dd978..3ede77b6 100644 --- a/btrfs-completion +++ b/btrfs-completion @@ -36,7 +36,7 @@ _btrfs() commands_device='scan add delete remove ready stats usage' commands_scrub='start cancel resume status' commands_rescue='chunk-recover super-recover' - commands_inspect_internal='inode-resolve logical-resolve subvolid-resolve rootid min-dev-size dump-tree dump-super' + commands_inspect_internal='inode-resolve logical-resolve subvolid-resolve rootid min-dev-size dump-tree dump-super tree-stats' commands_property='get set list' commands_quota='enable disable rescan' commands_qgroup='assign remove create destroy show limit'