Home | History | Annotate | Download | only in payload_consumer

Lines Matching defs:partition

94   InstallPlan::Partition& partition =
100 part_path = partition.source_path;
101 remaining_size_ = partition.source_size;
104 part_path = partition.target_path;
105 remaining_size_ = partition.target_size;
108 LOG(INFO) << "Hashing partition " << partition_index_ << " ("
109 << partition.name << ") on device " << part_path;
169 // We either terminate the current partition or have more data to read.
176 << " bytes from partition "
197 InstallPlan::Partition& partition =
199 LOG(INFO) << "Hash of " << partition.name << ": "
204 if (partition.target_hash != hasher_->raw_hash()) {
205 LOG(ERROR) << "New '" << partition.name
206 << "' partition verification failed.";
207 if (partition.source_hash.empty()) {
211 // If we have not verified source partition yet, now that the target
212 // partition does not match, and it's not a full payload, we need to
214 // partition does not match either.
221 if (partition.source_hash != hasher_->raw_hash()) {
222 LOG(ERROR) << "Old '" << partition.name
223 << "' partition verification failed.";
226 LOG(ERROR) << "The delta I've been given contains a " << partition.name
228 << partition.name << " with a specific checksum, but the "
229 << partition.name
233 << partition.name << " partition I have has hash: "
236 << Base64Encode(partition.source_hash) << " .";
237 LOG(INFO) << "To get the checksum of the " << partition.name
238 << " partition run this command: dd if="
239 << partition.source_path
240 << " bs=1M count=" << partition.source_size
247 // The action will skip kVerifySourceHash step if target partition hash
249 // and now that the source partition hash matches, we should set the error
250 // code to reflect the error in target partition.
251 // We only need to verify the source partition which the target hash does
255 // Start hashing the next partition, if any.