1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-27 12:41:00 +01:00

added dbValidStatePaths, StatePaths are now also registered as valid and can be query'd on validity

This commit is contained in:
Wouter den Breejen 2007-06-22 14:04:06 +00:00
parent 51fad07fbd
commit 6351b7e728
8 changed files with 126 additions and 24 deletions

View file

@ -40,7 +40,11 @@ public:
/* Implementations of abstract store API methods. */
bool isValidPath(const Path & path);
bool isValidStatePath(const Path & path);
bool isValidComponentOrStatePath(const Path & path);
Substitutes querySubstitutes(const Path & srcPath);
Hash queryPathHash(const Path & path);
@ -115,13 +119,14 @@ void clearSubstitutes();
of the file system contents of the path. The hash must be a
SHA-256 hash. */
void registerValidPath(const Transaction & txn,
const Path & path, const Hash & hash,
const Path & path, const Path & statepath, const Hash & hash,
const PathSet & references, const PathSet & stateReferences,
const Path & deriver);
struct ValidPathInfo
{
Path path;
Path statePath;
Path deriver;
Hash hash;
PathSet references;