]> git.tue.mpg.de Git - dss.git/commit
Merge branch 'refs/heads/t/prune'
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 7 Nov 2019 11:31:02 +0000 (12:31 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 7 Nov 2019 11:31:02 +0000 (12:31 +0100)
commit766ebea19c1618ddab85a4fc6af2a5bf53a9ec38
tree71ec627cea1436904f9b34da238472c10558e583
parenta49a95efca7e3b22c1b06b38319fdfbeea8c7fe2
parent71a8073e6f18ccc21880a475af8d864279a960b8
Merge branch 'refs/heads/t/prune'

A couple of cleanups and unifications for the snapshot pruning code,
which is executed by the prune and run subcommands. With the patches
applied, both subcommands behave identically, i.e. they consider
the same set of snapshots as candidates for pruning. Also the prune
command gained the new --disk-space option to force it to act as if
disk space was high or low.

Cooking for six weeks.

* refs/heads/t/prune:
  Introduce prune --disk-space.
  Revamp com_prune().
  Factor out find_removable_snapshot().
  prune Simplify rm exit code logic.
  find_oldest_removable_snapshot(): Improve log message.
  prune: Print a message if there is nothing to prune.
  get_snapshot_list(): Add comment about sorting.
  prune: Fail gracefully if pre-rm hook fails.
dss.c