Home | History | Annotate | Download | only in applypatch

Lines Matching refs:partition

58     // load the contents of a partition.
123 // Load the contents of an MTD or EMMC partition into the provided
127 // which that prefix of the partition contents has the corresponding
132 // interrupted, the partition might contain either the source or the
134 // the length in order to read from a partition (there is no
155 const char* partition = strtok(NULL, ":");
200 const MtdPartition* mtd = mtd_find_partition_by_name(partition);
202 printf("mtd partition \"%s\" not found (loading %s)\n",
203 partition, filename);
209 printf("failed to initialize read of mtd partition \"%s\"\n",
210 partition);
216 dev = fopen(partition, "rb");
218 printf("failed to open emmc partition \"%s\": %s\n",
219 partition, strerror(errno));
250 printf("short read (%d bytes of %d) for partition \"%s\"\n",
251 read, next, partition);
275 // we have a match. stop reading the partition; we'll return
277 printf("partition read matched size %d sha %s\n",
299 printf("contents of partition \"%s\" didn't match %s\n",
300 partition, filename);
358 // Write a memory buffer to 'target' partition, a string of the form
359 // "MTD:<partition>[:...]" or "EMMC:<partition_device>:". Return 0 on
375 const char* partition = strtok(NULL, ":");
377 if (partition == NULL) {
378 printf("bad partition target name \"%s\"\n", target);
389 const MtdPartition* mtd = mtd_find_partition_by_name(partition);
391 printf("mtd partition \"%s\" not found for writing\n",
392 partition);
398 printf("failed to init mtd partition \"%s\" for writing\n",
399 partition);
406 written, len, partition);
412 printf("error finishing mtd write of %s\n", partition);
418 printf("error closing mtd write of %s\n", partition);
427 int fd = open(partition, O_RDWR | O_SYNC);
429 printf("failed to open %s: %s\n", partition, strerror(errno));
436 printf("raw O_SYNC write %s attempt %d start at %d\n", partition, attempt+1, start);
448 partition, strerror(errno));
486 partition, p, strerror(errno));
492 partition, p, read_count, to_read, strerror(errno));
519 printf("error closing %s (%s)\n", partition, strerror(errno));
712 // <source_filename> may refer to a partition to read the source data.
849 // If the target is a partition, we're actually going to
851 // partition. statfs() always returns 0 blocks free for
856 // the partition write is interrupted.
892 // deleting the source if the source is a partition. If
895 "is partition\n");
1015 // Copy the temp file to the partition.