12#ifndef INCLUDES_APRA_UTILS_STORAGEUSB_H_
13#define INCLUDES_APRA_UTILS_STORAGEUSB_H_
26 StorageUSB(std::string mountPath, std::vector<STORAGE_TYPE> supportedTypes,
27 bool shouldPrint,
bool skipMount =
false);
33 bool getStorageInfo(uint64_t &freeSpaceInMB, uint64_t &totalCapacityInMB);
37 struct udev_device *parent,
const char *subsystem);
42 std::vector<StorageMinimalInfo>
getPartitions(std::string devpath);
45 uint8_t retryLimit = 3);
50 uint8_t retryLimit = 3);
bool isDeviceNodeConnected()
std::vector< StorageMinimalInfo > getPartitions(std::string devpath)
string findMountDeviceBylsblk(string devicePartitionNode)
bool unMountWithoutPrivilege()
std::vector< STORAGE_TYPE > m_supportedTypes
bool unMountWithPrivilege()
bool getStorageInfo(uint64_t &freeSpaceInMB, uint64_t &totalCapacityInMB)
virtual string insertCheck()
virtual bool ejectDevice()
virtual string mountDevice()
std::string getMountPath()
string findMountedDevice(string devicePartitionNode)
std::string m_partitionNode
struct udev_device * getChildDevice(struct udev *udev, struct udev_device *parent, const char *subsystem)
StorageMinimalInfo getHighCapacityPartition(std::string deviceNode)
bool mountWithoutPrivilege(StorageMinimalInfo storageDevice)
STORAGE_STATE getStatus()
std::string enumerateDevices(struct udev *udev)
bool mountUSBDevice(StorageMinimalInfo storageDevice, uint8_t retryLimit=3)
bool mountDeviceNode(string deviceNode)
bool mountWithPrivilege(StorageMinimalInfo storageDevice, uint8_t retryLimit=3)
virtual bool isUnsafeEject()