X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=snap.c;h=8de76d459da1a8844a452fa576d706014b229be9;hp=ec0449d941c0296b5bb2b7f282a828b3c76d1196;hb=HEAD;hpb=b76728084d7b36d55e08764c9de42ad59fd6f6fd diff --git a/snap.c b/snap.c index ec0449d..da95c1f 100644 --- a/snap.c +++ b/snap.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2008-2010 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* SPDX-License-Identifier: GPL-2.0 */ #include #include #include @@ -84,7 +80,7 @@ static int is_snapshot(const char *dirname, int64_t now, int unit_interval, } if (!strcmp(dash + 1, "incomplete.being_deleted")) { s->completion_time = -1; - s->flags = SS_BEING_DELETED; /* mot cpmplete, being deleted */ + s->flags = SS_BEING_DELETED; /* not complete, being deleted */ goto success; } tmp = dash + 1; @@ -150,7 +146,7 @@ static int compare_snapshots(const void *a, const void *b) return NUM_COMPARE(s2->creation_time, s1->creation_time); } - +/* The returned snapshot list is sorted by creation time. */ void get_snapshot_list(struct snapshot_list *sl, int unit_interval, int num_intervals) {