FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_reserved::ns_overlay Namespace Reference

Overlay filesystem type selection in reserved space. More...

Functions

Value< void > write (fs::path const &path_file_binary, OverlayType const &overlay)
 Writes a overlay mask to the flatimage binary.
 
Value< OverlayType > read (fs::path const &path_file_binary)
 Read the overlay mask from the flatimage binary.
 

Detailed Description

Overlay filesystem type selection in reserved space.

This namespace manages the overlay filesystem type stored as a single-byte mask in the binary's reserved space. It allows selection between different overlay implementations: BWRAP (bubblewrap native), OVERLAYFS (fuse-overlayfs), and UNIONFS (unionfs-fuse). The overlay type determines how the writable layer is merged with read-only base layers to create the final root filesystem.

Function Documentation

◆ read()

Value< OverlayType > ns_reserved::ns_overlay::read ( fs::path const & path_file_binary)
inline

Read the overlay mask from the flatimage binary.

Parameters
path_file_binaryPath to the flatimage binary
Returns
On success, returns the type of overlay currently in use. Or the respective error.

Definition at line 72 of file overlay.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

Value< void > ns_reserved::ns_overlay::write ( fs::path const & path_file_binary,
OverlayType const & overlay )
inline

Writes a overlay mask to the flatimage binary.

Parameters
path_file_binaryPath to the flatimage binary
overlayOverlay type enumeration
Returns
Value<void> Nothing on success, or the respective error

Definition at line 48 of file overlay.hpp.

Here is the call graph for this function:
Here is the caller graph for this function: