summaryrefslogtreecommitdiff
path: root/snap.c (follow)
Commit message (Collapse)AuthorAge
* Dedoxify the source.Andre Noll2025-02-01
| | | | | | The doxygen comments actually make the source code harder to read, because they tend to document the obvious. Besides, they are not used uniformly accross the code base anyway.
* get_snapshot_list(): Add comment about sorting.Andre Noll2019-09-21
| | | | | Callers rely on the returned snapshot list being sorted by creation time, so let's document this fact.
* Replace license boilerplate with single line SPDX comments.Andre Noll2017-11-19
| | | | | | | | | | | | | | | | | | | | This gets rid of existing copyright templates in favor of just the one-liner SPDX (Software Package Data Exchange) notice. All files are licensed under the GPL-2.0, so the same tag is added to each file. No copyright is changed by this commit. Several files (mostly the very short ones) did not contain a license text so far. By default all files without license information are under the default license of this package, which is GPL version 2. This commit adds the missing SPDX line so that now all files except dss.css, index.html.in, INSTALL, NEWS and README have it. We also remove author and copyright year, since the author is the same everywhere, and the year hasn't been updated any more since at least six years. Accurate information is available from the git log. The COPYING file can also be removed because the license text at https://spdx.org/licenses/GPL-2.0.html is immutable.
* Assorted typo fixes in comments.Andre Noll2015-01-06
|
* Merge branch 'refs/heads/t/min-complete'Andre Noll2014-12-12
|\
| * Introduce --min-complete.Andre Noll2014-09-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently dss cowardly refuses to remove the last complete snapshot even if disk space is low, and fails if there is not enough disk space left for a second snapshot. However, in some situations it is more important to have a recent snapshot and to to keep dss up and running. This commit introduces a new integer option, --min-complete, which defaults to one to resemble the old behaviour. If it is set to zero, dss will happily remove the last complete snapshot, even if it is used as the reference directory for rsync's --link-dest option. This is dangerous, but it's the only way to keep dss going. Conversely, --min-complete may be set to a value greater than one to guarantee there is always a certain number of complete snapshots available.
* | Change email address and URLs.Andre Noll2014-08-19
|/ | | | | | | | The web and email service of systemlinux.org was down for two weeks. Meanwhile the dss web pages found a new home at the MPI campus of Tübingen. This commit changes the email addresses and the home page URL.
* Rename source files which also exist as system headers.Andre Noll2012-08-15
| | | | | | | | | As pointed out by Daniel Richard G. some of the dss header files are named the same as system header files. This patch renames these headers as well as their corresponding .c files. Specifically, error.h, fd.h, signal.h, string.h and time.h become err.h, file.h, sig.h, str.h and tv.h.
* Remove some debug messages.Daniel Richard G2012-08-04
| | | | | These were only helpful during development and are commented out for quite some time now. Remove them.
* compare_snapshots(): Add const keyword.Daniel Richard G2012-08-04
| | | | This fixes a "cast drops const qualifier" warning.
* Avoid per-element initializers.Daniel Richard G2012-08-04
| | | | | | Per-element struct initializers are not supported in ANSI C. This construct doesn't gain much in terms of readability, and breaks compatibility with older/stricter compilers.
* Change copyright year from 2009 to 2010.Andre Noll2010-11-06
| | | | Better late than never..
* Change copyright year from 2008 to 2009.Andre Noll2009-07-03
| | | | A bit late, but better late than never.
* Ignore any snapshot directory with creation time > completion time.Andre Noll2008-11-06
| | | | | | | Without this fix, dss would abort du to an assertion in dss.c: dss.c:171: compute_next_snapshot_time: Assertion `x >= 0' failed. Thanks to Sebastian Stark for pointing out this flaw.
* use C99-compliant format strings for consistency reasonsSebastian Stark2008-10-22
|
* snap.c: Add missing include to make it compile on FreeBSD.Andre Noll2008-05-14
|
* NetBSD Compile fixes.Andre Noll2008-05-14
| | | | Add a missing include and the dss_isdigit macro.
* Add GPL headers and COPYING file.Andre Noll2008-05-12
|
* Move snapshot helpers to new file snap.[ch].Andre Noll2008-03-22