| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |/
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
| |
This changes the second definition of HSA_ITEM to avoid C99
subscripted element initializers.
|
| |
|
|
| |
Better late than never..
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
A bit late, but better late than never.
|
| |
|
|
|
|
|
|
|
|
| |
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..
|
| |
|
|
|
|
| |
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.
|
| |
|
|
| |
We'd like to use only one set of states for both creation/removal.
|
| |
|
|
| |
It is not yet used, but we need something like that for the remove-hooks.
|
| | |
|
| |
|
| |
Unfortunately this happens frequently for no apparent reason.
|
| | |
|
| | |
|
| |
|