Grok 20.3.2
grk::NetworkFileChecker Class Reference

#include <NetworkFileChecker.h>

Public Member Functions

 NetworkFileChecker ()=default
bool isIscsi (const std::string &filePath)
int getBlockSize (const std::string &filePath)
int getOptimalFetchSize (const std::string &filePath)
bool isNetworkDrive (const std::string &filePath)

Private Member Functions

std::string getDevicePath (uint32_t majorNum, uint32_t minorNum)
bool isIscsiDevice (const std::string &devicePath)
std::string getDeviceName (const std::string &devicePath)

Private Attributes

std::unordered_map< std::string, bool > deviceCache

Constructor & Destructor Documentation

◆ NetworkFileChecker()

grk::NetworkFileChecker::NetworkFileChecker ( )
default

Member Function Documentation

◆ getBlockSize()

int grk::NetworkFileChecker::getBlockSize ( const std::string & filePath)
inline

◆ getDeviceName()

std::string grk::NetworkFileChecker::getDeviceName ( const std::string & devicePath)
inlineprivate

◆ getDevicePath()

std::string grk::NetworkFileChecker::getDevicePath ( uint32_t majorNum,
uint32_t minorNum )
inlineprivate

◆ getOptimalFetchSize()

int grk::NetworkFileChecker::getOptimalFetchSize ( const std::string & filePath)
inline

References getDeviceName(), and getDevicePath().

◆ isIscsi()

bool grk::NetworkFileChecker::isIscsi ( const std::string & filePath)
inline

◆ isIscsiDevice()

bool grk::NetworkFileChecker::isIscsiDevice ( const std::string & devicePath)
inlineprivate

References getDeviceName().

Referenced by isIscsi().

◆ isNetworkDrive()

bool grk::NetworkFileChecker::isNetworkDrive ( const std::string & filePath)
inline

References isIscsi().

Member Data Documentation

◆ deviceCache

std::unordered_map<std::string, bool> grk::NetworkFileChecker::deviceCache
private

Referenced by isIscsi().


The documentation for this class was generated from the following file: