Go to the source code of this file.
Typedefs | |
typedef std::pair< dev_t, ino_t > | nix::Inode |
typedef std::set< Inode > | nix::InodesSeen |
Functions | |
void | nix::canonicalisePathMetaData (const Path &path, std::optional< std::pair< uid_t, uid_t > > uidRange, InodesSeen &inodesSeen) |
void | nix::canonicalisePathMetaData (const Path &path, std::optional< std::pair< uid_t, uid_t > > uidRange) |
void | nix::canonicaliseTimestampAndPermissions (const Path &path) |
nix::MakeError (PathInUse, Error) | |
void nix::canonicalisePathMetaData | ( | const Path & | path, |
std::optional< std::pair< uid_t, uid_t > > | uidRange, | ||
InodesSeen & | inodesSeen ) |
"Fix", or canonicalise, the meta-data of the files in a store path after it has been built. In particular:
If uidRange is not empty, this function will throw an error if it encounters files owned by a user outside of the closed interval [uidRange->first, uidRange->second].