• Home
  • Raw
  • Download

Lines Matching refs:block_device_path

1677   auto block_device_path = updater->FindBlockDeviceName(blockdev_filename->data);  in PerformBlockImageUpdate()  local
1678 if (block_device_path.empty()) { in PerformBlockImageUpdate()
1704 params.fd.reset(TEMP_FAILURE_RETRY(open(block_device_path.c_str(), O_RDWR))); in PerformBlockImageUpdate()
1707 PLOG(ERROR) << "open \"" << block_device_path << "\" failed"; in PerformBlockImageUpdate()
1712 if (!Sha1DevicePath(block_device_path, digest)) { in PerformBlockImageUpdate()
1725 LOG(INFO) << "Skipping already updated partition " << block_device_path << " based on marker"; in PerformBlockImageUpdate()
1923 const char* partition = strrchr(block_device_path.c_str(), '/'); in PerformBlockImageUpdate()
2091 auto block_device_path = state->updater->FindBlockDeviceName(blockdev_filename->data); in RangeSha1Fn() local
2092 if (block_device_path.empty()) { in RangeSha1Fn()
2098 android::base::unique_fd fd(open(block_device_path.c_str(), O_RDWR)); in RangeSha1Fn()
2101 ErrorAbort(state, cause_code, "open \"%s\" failed: %s", block_device_path.c_str(), in RangeSha1Fn()
2115 ErrorAbort(state, kLseekFailure, "failed to seek %s: %s", block_device_path.c_str(), in RangeSha1Fn()
2123 ErrorAbort(state, cause_code, "failed to read %s: %s", block_device_path.c_str(), in RangeSha1Fn()
2162 auto block_device_path = state->updater->FindBlockDeviceName(arg_filename->data); in CheckFirstBlockFn() local
2163 if (block_device_path.empty()) { in CheckFirstBlockFn()
2169 android::base::unique_fd fd(open(block_device_path.c_str(), O_RDONLY)); in CheckFirstBlockFn()
2172 ErrorAbort(state, cause_code, "open \"%s\" failed: %s", block_device_path.c_str(), in CheckFirstBlockFn()
2182 ErrorAbort(state, cause_code, "failed to read %s: %s", block_device_path.c_str(), in CheckFirstBlockFn()
2237 auto block_device_path = state->updater->FindBlockDeviceName(filename->data); in BlockImageRecoverFn() local
2238 if (block_device_path.empty()) { in BlockImageRecoverFn()
2245 LOG(INFO) << block_device_path << " image corrupted, attempting to recover..."; in BlockImageRecoverFn()
2248 fec::io fh(block_device_path, O_RDWR); in BlockImageRecoverFn()
2251 ErrorAbort(state, kLibfecFailure, "fec_open \"%s\" failed: %s", block_device_path.c_str(), in BlockImageRecoverFn()
2277 block_device_path.c_str(), j, strerror(errno)); in BlockImageRecoverFn()
2293 LOG(INFO) << "..." << block_device_path << " image recovered successfully."; in BlockImageRecoverFn()