FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_filesystems::ns_dwarfs::Dwarfs Class Referencefinal
Inheritance diagram for ns_filesystems::ns_dwarfs::Dwarfs:
[legend]
Collaboration diagram for ns_filesystems::ns_dwarfs::Dwarfs:
[legend]

Public Member Functions

 Dwarfs (pid_t pid_to_die_for, fs::path const &path_dir_mount, fs::path const &path_file_image, fs::path const &path_file_log, uint64_t offset, uint64_t size_image)
 Construct a new Dwarfs:: Dwarfs object.
 
Value< void > mount () override
 Mounts the filesystem.
 
- Public Member Functions inherited from ns_filesystem::Filesystem
virtual ~Filesystem ()
 Destroy the Filesystem:: Filesystem object, it un-mounts the filesystem and sends a termination signal.
 
 Filesystem (Filesystem &&)=default
 
 Filesystem (Filesystem const &)=delete
 
Filesystemoperator= (Filesystem &&)=default
 
Filesystemoperator= (Filesystem const &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from ns_filesystem::Filesystem
 Filesystem (pid_t pid_to_die_for, std::filesystem::path const &path_dir_mount, std::filesystem::path const &path_file_log)
 Construct a new Filesystem object.
 
- Protected Attributes inherited from ns_filesystem::Filesystem
pid_t m_pid_to_die_for
 
std::filesystem::path m_path_dir_mount
 
std::filesystem::path m_path_file_log
 
std::unique_ptr< ns_subprocess::Childm_child
 

Detailed Description

Definition at line 37 of file dwarfs.hpp.

Constructor & Destructor Documentation

◆ Dwarfs()

ns_filesystems::ns_dwarfs::Dwarfs::Dwarfs ( pid_t pid_to_die_for,
fs::path const & path_dir_mount,
fs::path const & path_file_image,
fs::path const & path_file_log,
uint64_t offset,
uint64_t size_image )
inline

Construct a new Dwarfs:: Dwarfs object.

Parameters
pid_to_die_forPid the mount process should die with
path_dir_mountPath to the mount directory
path_file_imagePath to the flatimage file
offsetOffset to the filesystem start
size_imageImage length

Definition at line 62 of file dwarfs.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ mount()

Value< void > ns_filesystems::ns_dwarfs::Dwarfs::mount ( )
inlineoverridevirtual

Mounts the filesystem.

Returns
Value<void> Nothing on success or the respective error

Implements ns_filesystem::Filesystem.

Definition at line 82 of file dwarfs.hpp.

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

The documentation for this class was generated from the following file: