From: Andre Noll Date: Thu, 7 Feb 2019 18:05:24 +0000 (+0100) Subject: prune: Print a message if there is nothing to prune. X-Git-Tag: v1.0.1~1^2~5 X-Git-Url: http://git.tuebingen.mpg.de/dss.git/log?p=dss.git;a=commitdiff_plain;h=e761ab7ba49d906bbbeddabfeb95772b026c335c prune: Print a message if there is nothing to prune. 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. --- diff --git a/dss.c b/dss.c index f91883a..537c243 100644 --- 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: