diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-12-23T21·36+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-12-23T21·36+0000 |
commit | f96d2dea266760e5587356e72d1cadaace5f7d5b (patch) | |
tree | b335134787eb543588df53453bd19fdc1d080c84 /src/libstore/gc.hh | |
parent | 4b9e7f59ca14c3de7b0cfdaebca98fa2639bbbf9 (diff) |
* Added a flag `--ignore-liveness' to `nix-store --delete'. It
deletes a path even if it is reachable from a root. However, it won't delete a path that still has referrers (since that would violate store invariants). Don't try this at home. It's a useful hack for recovering from certain situations in a somewhat clean way (e.g., holes in closures due to disk corruption).
Diffstat (limited to 'src/libstore/gc.hh')
-rw-r--r-- | src/libstore/gc.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.hh b/src/libstore/gc.hh index b05d88f93088..c6b13bc471ac 100644 --- a/src/libstore/gc.hh +++ b/src/libstore/gc.hh @@ -21,7 +21,7 @@ typedef enum { set of paths not reachable from the roots. If `action' is `gcDeleteDead', actually delete the latter set. */ void collectGarbage(GCAction action, const PathSet & pathsToDelete, - PathSet & result, unsigned long long & bytesFreed); + bool ignoreLiveness, PathSet & result, unsigned long long & bytesFreed); /* Register a temporary GC root. This root will automatically disappear when this process exits. WARNING: this function should |