Skip to main content

Module modifier

Module modifier 

Source
Expand description

The commit modifier: the options that shape the ingest of a directory.

Transaction::write_dfd_to_mtree reads a directory on disk into a MutableTree. A CommitModifier changes what that walk records for each entry. It holds:

  • a set of CommitModifierFlags
  • a declared owner uid and gid
  • a filter, a mode callback, an xattr callback, and a SELinux label callback
  • a DevInoCache, which is optional

Structs§

CommitModifier
The options that shape what the walk of a directory commits.
CommitModifierFlags
The flags that control the ingest of a directory tree.
DevInoCache
A map from (device, inode) to the checksum of a content object.

Enums§

FilterResult
The verdict of a filter callback for one entry.

Type Aliases§

FilterFn
A synchronous filter over the ingested paths.
LabelFn
A synchronous callback that returns the SELinux label of an entry.
ModeFn
A synchronous callback that replaces the recorded st_mode of an entry.
XattrFn
A synchronous callback that replaces the stored xattr set of an entry.