]> git.tue.mpg.de Git - dss.git/commitdiff
prune: Print a message if there is nothing to prune.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 7 Feb 2019 18:05:24 +0000 (19:05 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 21 Sep 2019 13:08:40 +0000 (15:08 +0200)
When the prune subcommand finds there are no snapshots to prune, the
command stays silent, which is confusing. Make it print "nothing to
prune" in this case.

dss.c

diff --git a/dss.c b/dss.c
index f91883aefd467665ffa6c4858657dc1a532ef998..537c2430f7b18f7f5f6809fd270993ee800ba6b9 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -1661,6 +1661,7 @@ static int com_prune(void)
        victim = find_redundant_snapshot(&sl);
        if (victim)
                goto rm;
+       dss_msg("nothing to prune\n");
        ret = 0;
        goto out;
 rm: