Class that represents a single loop mount within a container.
More...
#include <LoopMountDetails.h>
|
std::string | mMountPointInsideContainer |
|
std::string | mTempMountPointOutsideContainer |
|
LoopMountProperties | mMount |
|
uid_t | mUserId |
|
gid_t | mGroupId |
|
const std::shared_ptr< DobbyRdkPluginUtils > | mUtils |
|
Class that represents a single loop mount within a container.
This class is only intended to be used internally by Storage plugin do not use from external code.
- See also
- Storage
◆ cleanupTempDirectory()
bool LoopMountDetails::cleanupTempDirectory |
( |
| ) |
|
Cleans up temp mount and directory.
- Returns
- true on success, false on failure.
◆ doLoopMount()
bool LoopMountDetails::doLoopMount |
( |
const std::string & |
loopDevice | ) |
|
Performs the loop mount, this should be called prior to the container being runned.
- Parameters
-
[in] | loopDevice | The loop device to mount. |
- Returns
- true on success, false on failure.
◆ getRefCountFile()
std::unique_ptr< RefCountFile > LoopMountDetails::getRefCountFile |
( |
| ) |
|
|
private |
Open the reference count file for the data.img file.
- Returns
- unique_ptr to reference count file, nullptr on failure.
◆ onPreCreate()
bool LoopMountDetails::onPreCreate |
( |
| ) |
|
Opens the data.img file and mounts it to temp location inside container.
- Returns
- true on success, false on failure.
◆ remountTempDirectory()
bool LoopMountDetails::remountTempDirectory |
( |
| ) |
|
Mounts temp directory into desired one, then cleans old files.
- Returns
- true on success, false on failure.
◆ removeNonPersistentImage()
bool LoopMountDetails::removeNonPersistentImage |
( |
| ) |
|
Checks if image should be non persistent and if so remove it.
- Returns
- true on success, false on failure.
◆ setPermissions()
bool LoopMountDetails::setPermissions |
( |
| ) |
|
Sets permissions for container to access directories.
- Returns
- true on success, false on failure.
The documentation for this class was generated from the following files:
- rdkPlugins/Storage/source/LoopMountDetails.h
- rdkPlugins/Storage/source/LoopMountDetails.cpp