From 74a95ec84c1a45b6d5b5fe40617c5c9d0c86e32d Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 22 Nov 2016 16:34:44 +0100 Subject: [PATCH] btrfs-progs: deprecate standalone btrfs-calc-size The functionality is now provided by 'inspect tree-stats'. Signed-off-by: David Sterba --- Makefile.in | 5 +++-- btrfs-calc-size.c | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 4c565cd8..db5c8de4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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) diff --git a/btrfs-calc-size.c b/btrfs-calc-size.c index 835fcc50..1c5c61df 100644 --- a/btrfs-calc-size.c +++ b/btrfs-calc-size.c @@ -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);