diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-06-01 23:20:11 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-06-03 22:06:18 +0200 |
commit | 715478fe09a73cec70f5c6f869cac482f004596f (patch) | |
tree | a4fc69c19a3c86c9fee95ee9ed1e6c8a75e5d2ad /nix/libstore/store-api.hh | |
parent | 64a998ebcb6ebf8c11efa0a0332cce3d8f1c538e (diff) | |
download | guix-715478fe09a73cec70f5c6f869cac482f004596f.tar.gz |
Add a ‘verifyStore’ RPC
Hello! The patch below adds a ‘verifyStore’ RPC with the same signature as the current LocalStore::verifyStore method. Thanks, Ludo’. >From aef46c03ca77eb6344f4892672eb6d9d06432041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org> Date: Mon, 1 Jun 2015 23:17:10 +0200 Subject: [PATCH] Add a 'verifyStore' remote procedure call.
Diffstat (limited to 'nix/libstore/store-api.hh')
-rw-r--r-- | nix/libstore/store-api.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nix/libstore/store-api.hh b/nix/libstore/store-api.hh index 97a60a6a5c..3764f3e542 100644 --- a/nix/libstore/store-api.hh +++ b/nix/libstore/store-api.hh @@ -254,6 +254,10 @@ public: /* Optimise the disk space usage of the Nix store by hard-linking files with the same contents. */ virtual void optimiseStore() = 0; + + /* Check the integrity of the Nix store. Returns true if errors + remain. */ + virtual bool verifyStore(bool checkContents, bool repair) = 0; }; |