about summary refs log tree commit diff
path: root/src/libstore/derivations.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-11-09T19·48+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-11-09T20·28+0100
commit4384bbd2e151e7b6f627cb022ea1cc4f5dcbe180 (patch)
treef6d22513f89a797897584342dcd0c563e6e9be8b /src/libstore/derivations.cc
parent7759a56bedf5136704605409a3b5b758fd4233d4 (diff)
optimizePath(): Detect some .links corruption
If automatic store optimisation is enabled, and a hard-linked file in
the store gets corrupted, then the corresponding .links entry will
also be corrupted. In that case, trying to repair with --repair or
--repair-path won't work, because the new "good" file will be replaced
by a hard link to the corrupted file. We can catch most of these cases
by doing a sanity-check on the file sizes.
Diffstat (limited to 'src/libstore/derivations.cc')
0 files changed, 0 insertions, 0 deletions