FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_filesystems::ns_dwarfs Namespace Reference

DwarFS compressed read-only filesystem wrapper. More...

Classes

class  Dwarfs
 

Functions

bool is_dwarfs (fs::path const &path_file_dwarfs, uint64_t offset=0)
 Checks if the filesystem is a Dwarfs filesystem with a given offset.
 

Detailed Description

DwarFS compressed read-only filesystem wrapper.

Provides high-compression read-only filesystem support using DwarFS with on-the-fly decompression. Manages mounting compressed base layers from specific byte offsets within the FlatImage binary, enabling efficient storage and fast random access to the embedded Linux distribution filesystem.

Function Documentation

◆ is_dwarfs()

bool ns_filesystems::ns_dwarfs::is_dwarfs ( fs::path const & path_file_dwarfs,
uint64_t offset = 0 )
inline

Checks if the filesystem is a Dwarfs filesystem with a given offset.

Parameters
path_file_dwarfsPath to the file that contains a dwarfs filesystem
offsetOffset in the file at which the dwarfs filesystem starts
Returns
The boolean result
Examples
/flatimage/src/filesystems/layers.hpp.

Definition at line 114 of file dwarfs.hpp.

Here is the caller graph for this function: