Searched refs:loopPath (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/base/update/sys_installer/services/module_update/src/ |
H A D | module_loop.cpp | 409 bool IsLoopDevMatchedImg(const std::string &loopPath, const std::string &imgFilePath) in IsLoopDevMatchedImg() argument 417 int fd = open(loopPath.c_str(), O_RDWR | O_CLOEXEC); in IsLoopDevMatchedImg() 419 LOG(ERROR) << "Open failed, loopPath=" << loopPath.c_str() << ", errno=" << errno; in IsLoopDevMatchedImg() 431 bool CloseLoopDev(const std::string &loopPath) in CloseLoopDev() argument 434 if (stat(loopPath.c_str(), &st)) { in CloseLoopDev() 435 LOG(INFO) << "Stat error, loopPath=" << loopPath.c_str() << ", errno=" << errno; in CloseLoopDev() 439 int userFd = open(loopPath.c_str(), O_RDWR); in CloseLoopDev() 441 LOG(ERROR) << "Open error, loopPath=" << loopPath.c_str() << ", errno=" << errno; in CloseLoopDev() 448 LOG(ERROR) << "Clear error, loopPath=" << loopPath.c_str() << ", errno=" << errno; in CloseLoopDev()
|
/ohos5.0/base/update/sys_installer/services/module_update/include/ |
H A D | module_loop.h | 69 bool IsLoopDevMatchedImg(const std::string &loopPath, const std::string &imgFilePath); 70 bool CloseLoopDev(const std::string &loopPath);
|