]> git.tuebingen.mpg.de Git - dss.git/blobdiff - dss.c
prune: Print a message if there is nothing to prune.
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index a219cfd37b4569fbc3aa67fb2d4443a950353197..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:
@@ -1675,6 +1676,7 @@ rm:
                ret = wait_for_remove_process();
                if (ret < 0)
                        goto out;
+               ret = -E_HOOK_FAILED;
                if (snapshot_removal_status != HS_PRE_SUCCESS)
                        goto out;
        }