summaryrefslogtreecommitdiff
path: root/snap.h (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.
* 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.
* gcc-compat.h: Remove _static_inline_ macro.Andre Noll2017-11-14
| | | | | | | | | | | The only purpose of this macro is to have a way to include static inline functions into the doxygen source code documentation (but omit normal static functions in .c files). Since dss does not use doxygen, the macro is pointless. Remove the equally pointless documentation of dss_rename(), one of the two users of _static_inline_, while converting it to plain static inline.
* 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.
* Remove trailing commas.Daniel Richard G2012-08-04
|
* snap.h: Fix HSA_ITEM.Daniel Richard G2012-08-04
| | | | | This changes the second definition of HSA_ITEM to avoid C99 subscripted element initializers.
* Change copyright year from 2009 to 2010.Andre Noll2010-11-06
| | | | Better late than never..
* Dump config and internal state on SIGHUP.Andre Noll2010-06-15
| | | | | | | | | | | | | | This patch changes the signal handling of SIGHUP so information about the internal state and the config are written to the log file. Both the old and the reloaded configuration are written to make it easier to investigate what has changed. Internal state output consist of the value of all global variables, inclusing hook state, PIDs, free disk space and path information. The patch also adds a one-line description of each possible hook state, and this description is also printed on SIGHUP.
* Fix two typos in comments.Andre Noll2009-09-03
|
* Change copyright year from 2008 to 2009.Andre Noll2009-07-03
| | | | A bit late, but better late than never.
* Try harder to avoid removing the reference snapshot.Andre Noll2009-06-29
| | | | | | | | | | With the old code, it was possible that dss decided to remove the snapshot which is currently being used as the hardlink directory for the current rsync process. This patch changes the behaviour so that reference snapshots are never removed. The downside of this approach is of course that it is now easier to fill up the disk..
* Remove orphaned snapshots first if disk space is low.Andre Noll2009-05-29
| | | | | | If the dss process gets killed, an orphaned snapshot might result. Detect this case and prefer to remove such orphaned snapshots before resorting to remove the oldest snapshot.
* Rename hook_status enum.Andre Noll2009-04-07
| | | | We'd like to use only one set of states for both creation/removal.
* Introduce the snapshot removal status.Andre Noll2009-03-16
| | | | It is not yet used, but we need something like that for the remove-hooks.
* Trivial typo fix.Andre Noll2009-03-16
|
* Restart the rsync process if it returned with exit code 13.Andre Noll2008-07-07
| | | Unfortunately this happens frequently for no apparent reason.
* Add GPL headers and COPYING file.Andre Noll2008-05-12
|
* Add more source code documentation.Andre Noll2008-03-22
|
* Move snapshot helpers to new file snap.[ch].Andre Noll2008-03-22