X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=dss.c;h=db454491c7024b78eba4a7cd692b9585badfd09f;hb=4b924a3bd5b3dd3e5d28de86def51a25034291f1;hp=a219cfd37b4569fbc3aa67fb2d4443a950353197;hpb=5f5cd0b291c62b056c294cd947c00118572bc002;p=dss.git diff --git a/dss.c b/dss.c index a219cfd..db45449 100644 --- a/dss.c +++ b/dss.c @@ -651,6 +651,7 @@ static struct snapshot *find_oldest_removable_snapshot(struct snapshot_list *sl) int i, num_complete; struct snapshot *s, *ref = NULL; + DSS_DEBUG_LOG(("picking snapshot with earliest creation time\n")); num_complete = num_complete_snapshots(sl); if (num_complete <= OPT_UINT32_VAL(DSS, MIN_COMPLETE)) return NULL; @@ -661,7 +662,6 @@ static struct snapshot *find_oldest_removable_snapshot(struct snapshot_list *sl) ref = s; continue; } - DSS_INFO_LOG(("oldest removable snapshot: %s\n", s->name)); return s; } assert(ref); @@ -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; }