diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-05T02·18+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-05T02·18+0000 |
commit | a9c4f66cfb1618833cc70ceaf13733730b634193 (patch) | |
tree | 47d3b9aab72f561e2e15f18b8ad415153bfd56ef /src/libstore/local-store.hh | |
parent | 29cf434a35d82529f56c085c9cd50858c148d086 (diff) |
* Allow unprivileged users to run the garbage collector and to do
`nix-store --delete'. But unprivileged users are not allowed to ignore liveness. * `nix-store --delete --ignore-liveness': ignore the runtime roots as well.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r-- | src/libstore/local-store.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index a7b3926cc7af..58bb70d0e4d5 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -66,6 +66,9 @@ public: void syncWithGC(); Roots findRoots(); + + void collectGarbage(GCAction action, const PathSet & pathsToDelete, + bool ignoreLiveness, PathSet & result, unsigned long long & bytesFreed); }; |