From 8fb8c26b6d07d2aadf9cf85bda159c815996be89 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 1 Sep 2014 22:21:42 +0200 Subject: Add an 'optimiseStore' remote procedure call. --- src/libstore/store-api.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libstore/store-api.hh') diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index b635fee2cf1a..3109f100ef93 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -250,6 +250,10 @@ public: `nix-store --register-validity'. */ string makeValidityRegistration(const PathSet & paths, bool showDerivers, bool showHash); + + /* Optimise the disk space usage of the Nix store by hard-linking files + with the same contents. */ + virtual void optimiseStore() = 0; }; -- cgit 1.4.1