From e761ab7ba49d906bbbeddabfeb95772b026c335c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 7 Feb 2019 19:05:24 +0100 Subject: [PATCH] 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. --- dss.c | 1 + 1 file changed, 1 insertion(+) 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: -- 2.39.5