Image utility functions declaration. More...
#include "config.hpp"
#include "logger/logger.hpp"
#include "utils/img.hpp"
#include "utils/fs.hpp"
#include "utils/paths.hpp"
#include "utils/exception.hpp"
#include <sys/mount.h>
#include <fcntl.h>
#include <linux/loop.h>
Namespaces | |
utils | |
Functions | |
bool | utils::getFreeLoopDevice (std::string &ret) |
Returns string with first free loop device. More... | |
bool | utils::mountImage (const std::string &image, const std::string &loopdev, const std::string &path) |
Mount an ext4 image from file on a given path by using a loop device. More... | |
bool | utils::umountImage (const std::string &path, const std::string &loopdev) |
Umounts previously mounted image. More... | |
bool | utils::copyImageContents (const std::string &img, const std::string &dst) |
Mounts an image and copies its contents to dst directory. More... | |
Image utility functions declaration.