diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-06-13T15·29+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-06-13T15·29+0200 |
commit | 1b6ee8f4c7e74f75e1f49b43cf22be7730b30649 (patch) | |
tree | f5cad59175b0614105b72c29ae95148c31c15651 /src/libstore/local-store.hh | |
parent | cd49ee08970f0fa44053fb12cdf29668e8131a51 (diff) |
Allow hard links between the outputs of a derivation
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r-- | src/libstore/local-store.hh | 5 |
1 files changed, 5 insertions, 0 deletions
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<dev_t, ino_t> Inode; +typedef set<Inode> 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); |