]> git.tuebingen.mpg.de Git - dss.git/commit
Always try to keep one snapshot for recycling.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 29 Dec 2015 15:28:02 +0000 (15:28 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 3 Mar 2016 14:34:48 +0000 (15:34 +0100)
commitf1aa445d6e57465d08b8a1ee6b9c87c9bb1d25f6
treefc2c8bdedc90e5793fea66fa9db37637cf602eea
parentbb57abb9288aae5dfe0fec57d953f01b514443ec
Always try to keep one snapshot for recycling.

Currently, if --keep-redundant is not given, we try to get rid of
outdated and redundant snapshots quickly, even if there is plenty of
free disk space available. However, as these snapshots can be used
for recycling, it seems to be worth to keep them around as long as
there are fewer snapshots available as configured.

This commit changes try_to_free_disk_space() to not remove snapshots
any more in this case. This patch should reduce disk I/O in the common
case where no snapshots need to be removed due to low disk space.
dss.c