1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 23:42:43 +01:00

Store: expose the protocol version used by a store

This commit is contained in:
Daiderd Jordan 2018-08-30 23:28:47 +02:00
parent c9a08540c3
commit 070823baa4
No known key found for this signature in database
GPG key ID: D02435D05B810C96
6 changed files with 29 additions and 0 deletions

View file

@ -1332,6 +1332,12 @@ void LocalStore::verifyPath(const Path & path, const PathSet & store,
}
unsigned int LocalStore::getProtocol()
{
return PROTOCOL_VERSION;
}
#if defined(FS_IOC_SETFLAGS) && defined(FS_IOC_GETFLAGS) && defined(FS_IMMUTABLE_FL)
static void makeMutable(const Path & path)