if (!low_disk_space && conf.keep_redundant_given)
return 0;
dss_get_snapshot_list(&sl);
+ ret = 0;
+ if (!low_disk_space && sl.num_snapshots <= 1)
+ goto out;
why = "outdated";
victim = find_outdated_snapshot(&sl);
if (victim)
if (victim)
goto remove;
/* try harder only if disk space is low */
- ret = 0;
if (!low_disk_space)
goto out;
why = "orphaned";
DSS_NOTICE_LOG("deferring snapshot creation...\n");
warn_count = 60; /* warn only once per hour */
}
+ gettimeofday(&next_snapshot_time, NULL);
+ next_snapshot_time.tv_sec += 60;
snapshot_creation_status = HS_READY;
ret = 0;
goto out;