diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-06-18T14·20+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-06-18T14·20+0000 |
commit | d3aa183beb774c20cb77052248cf45e684d134fb (patch) | |
tree | dff630ec4a8a0af08added558a1f6b753edfd5dd /src/libstore/store-api.hh | |
parent | a8f3b02092fcc08fb25fb327d0188ffc888120bb (diff) |
* Garbage collector: option `--max-freed' to stop after at least N
bytes have been freed, `--max-links' to stop when the Nix store directory has fewer than N hard links (the latter being important for very large Nix stores on filesystems with a 32000 subdirectories limit).
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 760e71adc70b..b2a2dc7a53ec 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -60,16 +60,10 @@ struct GCOptions unsigned long long maxFreed; /* Stop after the number of hard links to the Nix store directory - has dropped to at least `maxLinks'. */ + has dropped below `maxLinks'. */ unsigned int maxLinks; - GCOptions() - { - action = gcDeleteDead; - ignoreLiveness = false; - maxFreed = ULLONG_MAX; - maxLinks = UINT_MAX; - } + GCOptions(); }; |