Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::CanonicalisingRestoreHooks Class Reference
Inheritance diagram for nix::CanonicalisingRestoreHooks:
nix::RestoreSinkHooks

Public Member Functions

void directoryDone (Descriptor dirFd) override
 Called when the callback passed to nix::RestoreSink::createDirectory() returns.
void regularFileCreated (Descriptor fd, bool executable) override
void symlinkCreated (Descriptor parentFd, const OsFilename &name) override
 Called after a symlink is created.

Member Function Documentation

◆ directoryDone()

void nix::CanonicalisingRestoreHooks::directoryDone ( Descriptor dirFd)
inlineoverridevirtual

Called when the callback passed to nix::RestoreSink::createDirectory() returns.

Naturally, this means that recursive copying and nix::restorePath() drives these in post-order when walking up the directory tree. This makes it suitable for canonicalising permissions of directories.

Parameters
dirFdFile descriptor of the directory.

Implements nix::RestoreSinkHooks.

◆ regularFileCreated()

void nix::CanonicalisingRestoreHooks::regularFileCreated ( Descriptor fd,
bool executable )
inlineoverridevirtual

Called when the callback passed to nix::RestoreSink::createRegularFile() returns.

Parameters
fdFile descriptor of the file.
executableWhether nix::CreateRegularFileSink::isExecutable() was called.

Implements nix::RestoreSinkHooks.

◆ symlinkCreated()

void nix::CanonicalisingRestoreHooks::symlinkCreated ( Descriptor parentFd,
const OsFilename & name )
inlineoverridevirtual

Called after a symlink is created.

Parameters
parentFdDirectory file descriptor of the symlink parent (immediate one).
nameRelative path of the symlink beneath the parent directory.

Implements nix::RestoreSinkHooks.


The documentation for this class was generated from the following file:
  • libstore/posix-fs-canonicalise.cc