lix/src
Sergei Trofimovich 6b1872312f nix store gc: account for auto-optimised store
Before the change on a system with `auto-optimise-store = true`:

    $ nix store gc --verbose --max 1

deleted all the paths instead of one path (we requested 1 byte limit).

It happens because every file in `auto-optimise-store = true` has at
least 2 links: file itself and a link in /nix/store/.links/ directory.

The change conservatively assumes that any file that has one (as before)
or two links (assume auto-potimise mode) will free space.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-13 07:24:48 +00:00
..
build-remote Move BuildResult defintion to its own header 2022-03-01 19:43:07 +00:00
libcmd BuildResult: Use DerivedPath 2022-03-09 12:25:35 +01:00
libexpr Merge remote-tracking branch 'origin/eval-suggestions' 2022-03-11 12:02:26 +01:00
libfetchers Style 2022-03-11 11:19:21 +01:00
libmain Factor out a GcStore interface 2022-03-03 19:01:25 +00:00
libstore nix store gc: account for auto-optimised store 2022-03-13 07:24:48 +00:00
libutil nix store gc: account for auto-optimised store 2022-03-13 07:24:48 +00:00
nix Style 2022-03-07 20:07:43 +01:00
nix-build Desugar StorePathWithOutputs in nix-build implementation 2022-03-11 20:50:52 +00:00
nix-channel Fix segfault in headerCallback() 2022-03-03 11:11:16 +01:00
nix-collect-garbage Factor out a GcStore interface 2022-03-03 19:01:25 +00:00
nix-copy-closure copyPaths: Pass store by reference 2021-07-22 09:59:51 +02:00
nix-env Use C++11-style initializer 2022-03-03 10:02:11 +01:00
nix-instantiate Add EvalState::coerceToStorePath() helper 2022-03-02 23:58:58 +01:00
nix-store Factor out a GcStore interface 2022-03-03 19:01:25 +00:00
resolve-system-dependencies Fix macOS build 2022-02-21 17:14:22 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00