|
FlatImage
A configurable Linux containerization system
|
Filesystem layer management command implementation. More...
Enumerations | |
| enum class | CommitMode { BINARY , LAYER , FILE } |
| Commit changes into a novel layer (binary/layer/file modes) More... | |
Functions | |
| Value< void > | create (fs::path const &path_dir_src, fs::path const &path_file_dst, fs::path const &path_file_list, uint64_t compression_level) |
| Creates a layer (filesystem) from a source directory. | |
| Value< void > | add (fs::path const &path_file_binary, fs::path const &path_file_layer) |
| Includes a filesystem in the target FlatImage. | |
| Value< uint64_t > | find_next_layer_number (fs::path const &path_dir_layers) |
| Finds the next available layer number in the layers directory. | |
| Value< void > | commit (fs::path const &path_file_binary, fs::path const &path_dir_src, fs::path const &path_file_layer_tmp, fs::path const &path_file_list_tmp, uint32_t layer_compression_level, CommitMode mode, std::optional< fs::path > const &path_dst=std::nullopt) |
| void | list (ns_filesystems::ns_layers::Layers const &layers) |
| Lists all layers in the format index:offset:size:path. | |
Filesystem layer management command implementation.
Implements the fim-layer command for creating, listing, and managing DwarFS compressed filesystem layers. Supports layer commit operations to snapshot the current writable overlay into a compressed read-only layer, and layer enumeration to display all available layers.
|
strong |
Commit changes into a novel layer (binary/layer/file modes)
| path_file_binary | Path to the FlatImage binary |
| path_dir_src | Source directory with overlay changes |
| path_file_layer_tmp | Temporary layer file path |
| path_file_list_tmp | Temporary file list path |
| layer_compression_level | Compression level for the layer |
| path_dir_layers | Path to the layers directory (for layer mode) |
| mode | Commit mode (binary, layer, or file) |
| path_file_dst | Destination path (only for file mode) |
Definition at line 189 of file layers.hpp.
|
inlinenodiscard |
Includes a filesystem in the target FlatImage.
| path_file_binary | Path to the target FlatImage in which to include the filesystem |
| path_file_layer | Path to the filesystem to include in the FlatImage |
Definition at line 127 of file layers.hpp.
|
inlinenodiscard |
Definition at line 191 of file layers.hpp.
|
inlinenodiscard |
Creates a layer (filesystem) from a source directory.
| path_dir_src | Path to the source directory |
| path_file_dst | Path to the output filesystem file |
| path_file_list | Path to a temporary file to store the list of files to compress |
| compression_level | The compression level to create the filesystem |
Definition at line 50 of file layers.hpp.
|
inlinenodiscard |
Finds the next available layer number in the layers directory.
| path_dir_layers | Path to the layers directory |
Definition at line 154 of file layers.hpp.
|
inline |
Lists all layers in the format index:offset:size:path.
| layers | The Layers object containing all filesystem layers |
Definition at line 274 of file layers.hpp.