Lines Matching defs:devPath

141     std::string devPath;

179 infos.devPath = GetBlockDeviceByMountPoint(infos.partitionName);
180 LOG(INFO) << "ExecuteUpdateBlock::updating dev path : " << infos.devPath;
181 if (infos.devPath.empty()) {
196 transferParams->devPath = infos.devPath;
286 int fd = open(infos.devPath.c_str(), O_RDWR | O_LARGEFILE);
397 bool UScriptInstructionBlockCheck::ExecReadBlockInfo(const std::string &devPath, Uscript::UScriptContext &context,
401 int fd = open(devPath.c_str(), O_RDWR | O_LARGEFILE);
453 auto devPath = GetBlockDeviceByMountPoint(partitionName);
454 LOG(INFO) << "UScriptInstructionBlockCheck::dev path : " << devPath;
457 if (devPath.empty() || (!ExecReadBlockInfo(devPath, context, mountTime, mountCount))) {
485 const std::string &devPath)
509 transferParams->devPath = devPath;
519 int fd = open(devPath.c_str(), O_RDWR | O_LARGEFILE);
536 bool UScriptInstructionShaCheck::IsTargetShaDiff(const std::string &devPath, const ShaInfo &shaInfo)
538 std::string tgtResultSha = CalculateBlockSha(devPath, shaInfo.targetPairs);
547 int UScriptInstructionShaCheck::ExecReadShaInfo(Uscript::UScriptEnv &env, const std::string &devPath,
551 std::string resultSha = CalculateBlockSha(devPath, shaInfo.blockPairs);
552 if (resultSha != shaInfo.contrastSha && IsTargetShaDiff(devPath, shaInfo)) {
553 if (DoBlocksVerify(env, partitionName, devPath) != USCRIPT_SUCCESS) {
557 PrintAbnormalBlockHash(devPath, shaInfo.blockPairs);
558 UPDATER_LAST_WORD(devPath.substr(devPath.find_last_of("/") + 1), USCRIPT_ERROR_EXECUTE);
567 void UScriptInstructionShaCheck::PrintAbnormalBlockHash(const std::string &devPath, const std::string &blockPairs)
569 int fd = open(devPath.c_str(), O_RDWR | O_LARGEFILE);
571 LOG(ERROR) << "Failed to open file " << devPath;
603 std::string UScriptInstructionShaCheck::CalculateBlockSha(const std::string &devPath, const std::string &blockPairs)
610 int fd = open(devPath.c_str(), O_RDWR | O_LARGEFILE);
704 auto devPath = GetBlockDeviceByMountPoint(partitionName);
705 LOG(INFO) << "UScriptInstructionShaCheck::dev path : " << devPath;
706 if (devPath.empty()) {
711 ret = ExecReadShaInfo(env, devPath, shaInfo, partitionName);