chiark / gitweb /
rsync-backup.in, rsync-backup.8: Trim caches on fshash mismatch.
authorMark Wooding <mwooding@good.com>
Fri, 10 Apr 2015 14:19:25 +0000 (15:19 +0100)
committerMark Wooding <mwooding@good.com>
Mon, 18 May 2015 15:53:06 +0000 (16:53 +0100)
commit1c0d86119920df1cedab397deaf1b6cd66f29ab9
tree7fdb7cdb828f9809fb2526a1d8006c9212429a00
parentd482de4ccee16ff91e5128bc8829882d8a17b3f6
rsync-backup.in, rsync-backup.8: Trim caches on fshash mismatch.

  * Capture the diff output in a file so we can pass it onto fshash for
    cache pruning if it's not empty.

  * If we're retrying because of an fshash mismatch then clear cache
    entries.  This is delayed from the cache-mismatch processing because
    we need the snapshot mounted so that fshash can do name->inode
    mapping.

  * By default, retry once.  Otherwise we don't get any benefit from
    evicting maybe-stale entries.
rsync-backup.8
rsync-backup.in