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

Public Member Functions

 UnionFs (pid_t pid_to_die_for, fs::path const &path_dir_mount, fs::path const &path_dir_upper, fs::path const &path_file_log, std::vector< fs::path > const &vec_path_dir_layer)
 Construct a new Union Fs:: Union Fs 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 39 of file unionfs.hpp.

Constructor & Destructor Documentation

◆ UnionFs()

ns_filesystems::ns_unionfs::UnionFs::UnionFs ( pid_t pid_to_die_for,
fs::path const & path_dir_mount,
fs::path const & path_dir_upper,
fs::path const & path_file_log,
std::vector< fs::path > const & vec_path_dir_layer )
inline

Construct a new Union Fs:: Union Fs object.

Parameters
pid_to_die_forPid the mount process should die with
path_dir_mountPath to the mount directory
path_dir_upperUpper directory where the changes of overlayfs are stored
vec_path_dir_layersVector of directories to overlay with overlayfs (bottom-up)

Definition at line 62 of file unionfs.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ mount()

Value< void > ns_filesystems::ns_unionfs::UnionFs::mount ( )
inlineoverridevirtual

Mounts the filesystem.

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

Implements ns_filesystem::Filesystem.

Definition at line 80 of file unionfs.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: