From 1b6ee8f4c7e74f75e1f49b43cf22be7730b30649 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 13 Jun 2013 17:29:56 +0200 Subject: Allow hard links between the outputs of a derivation --- src/libstore/local-store.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libstore/local-store.hh') diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index b1fde99cf959..4b132972e5ad 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -305,6 +305,10 @@ private: }; +typedef std::pair Inode; +typedef set InodesSeen; + + /* "Fix", or canonicalise, the meta-data of the files in a store path after it has been built. In particular: - the last modification date on each file is set to 1 (i.e., @@ -313,6 +317,7 @@ private: without execute permission; setuid bits etc. are cleared) - the owner and group are set to the Nix user and group, if we're in a setuid Nix installation. */ +void canonicalisePathMetaData(const Path & path, uid_t fromUid, InodesSeen & inodesSeen); void canonicalisePathMetaData(const Path & path, uid_t fromUid); void canonicaliseTimestampAndPermissions(const Path & path); -- cgit 1.4.1