Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2004-08-25 | * `--min-age' flag in nix-store and nix-collect-garbage to only delete | Eelco Dolstra | 1 | -2/+4 | |
unreachable paths that haven't been used for N hours. For instance, `nix-collect-garbage --min-age 168' only deletes paths that haven't been accessed in the last week. This is useful for instance in the build farm where many derivations can be shared between consecutive builds, and we wouldn't want a garbage collect to throw them all away. We could of course register them as roots, but then we'd to unregister them at some point, which would be a pain to manage. The `--min-age' flag gives us a sort of MRU caching scheme. BUG: this really shouldn't be in gc.cc since that violates mechanism/policy separation. | |||||
2004-08-25 | * Put the garbage collector in nix-store: operation `--gc', | Eelco Dolstra | 1 | -0/+24 | |
suboperations `--print-live', `--print-dead', and `--delete'. The roots are not determined by nix-store; they are read from standard input. This is to make it easy to customise what the roots are. The collector now no longer fails when store expressions are missing (which legally happens when using substitutes). It never tries to fetch paths through substitutes. TODO: acquire a global lock on the store while garbage collecting. * Removed `nix-store --delete'. |