btrfs-progs: deprecate standalone btrfs-calc-size

The functionality is now provided by 'inspect tree-stats'.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-11-22 16:34:44 +01:00
parent e5b7a27bf7
commit 74a95ec84c
2 changed files with 6 additions and 2 deletions

View File

@ -174,7 +174,7 @@ endif
MAKEOPTS = --no-print-directory Q=$(Q)
# build all by default
progs = $(progs_install) btrfsck btrfs-corrupt-block btrfs-calc-size
progs = $(progs_install) btrfsck btrfs-corrupt-block
# install only selected
progs_install = btrfs mkfs.btrfs btrfs-debug-tree \
@ -182,7 +182,8 @@ progs_install = btrfs mkfs.btrfs btrfs-debug-tree \
btrfs-find-root btrfstune btrfs-show-super \
btrfs-select-super
progs_extra = btrfs-fragments
# other tools, not built by default
progs_extra = btrfs-fragments btrfs-calc-size
progs_static = $(foreach p,$(progs),$(p).static)

View File

@ -25,6 +25,9 @@ int main(int argc, char **argv)
{
int ret;
warning(
"\nthe tool has been deprecated, please use 'btrfs inspect-internal tree-stats' instead\n");
if (argc > 1 && !strcmp(argv[1], "--help"))
usage(cmd_inspect_tree_stats_usage);