]> git.tuebingen.mpg.de Git - dss.git/commit - dss.c
Factor out find_removable_snapshot().
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 7 Feb 2019 19:49:19 +0000 (20:49 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 21 Sep 2019 13:10:50 +0000 (15:10 +0200)
commite3f9c1dcc861be14fc9a3f33057a905047e9a926
tree78db64cf17310119a0a0eb46b3b614294110b630
parent8255344c3fe023bde18aa06e0f860752445d0735
Factor out find_removable_snapshot().

Both the run and the prune subcommand contain code for picking a
suitable snapshot to remove, with slightly different semantics.

This is a preparatory patch for eliminating the differences between
the two implementations. It introduces a new helper which can be
shared. After this patch, only the run subcommand uses the helper. A
subsequent patch will convert the second caller, com_prune().
dss.c