23#ifndef LOOPMOUNTDETAILS_H
24#define LOOPMOUNTDETAILS_H
26#include "MountProperties.h"
28#include <RdkPluginBase.h>
64 const std::shared_ptr<DobbyRdkPluginUtils> &utils);
83 std::string mMountPointInsideContainer;
84 std::string mTempMountPointOutsideContainer;
89 const std::shared_ptr<DobbyRdkPluginUtils> mUtils;
Class that represents a single loop mount within a container.
Definition LoopMountDetails.h:49
bool onPreCreate()
Opens the data.img file and mounts it to temp location inside container.
Definition LoopMountDetails.cpp:76
bool setPermissions()
Sets permissions for container to access directories.
Definition LoopMountDetails.cpp:216
bool removeNonPersistentImage()
Checks if image should be non persistent and if so remove it.
Definition LoopMountDetails.cpp:336
bool doLoopMount(const std::string &loopDevice)
Performs the loop mount, this should be called prior to the container being runned.
Definition LoopMountDetails.cpp:159
bool remountTempDirectory()
Mounts temp directory into desired one, then cleans old files.
Definition LoopMountDetails.cpp:268
bool cleanupTempDirectory()
Cleans up temp mount and directory.
Definition LoopMountDetails.cpp:298
std::unique_ptr< RefCountFile > getRefCountFile()
Open the reference count file for the data.img file.
Definition LoopMountDetails.cpp:378
Class that represents a reference count file.
Definition RefCountFile.h:41
Dobby RDK Storage Plugin.
Definition Storage.h:45
LoopMountProperties struct used for Storage plugin.
Definition MountProperties.h:35