Home | History | Annotate | Download | only in applypatch

Lines Matching defs:partition

46     // load the contents of a partition.
102 // Load the contents of an MTD or EMMC partition into the provided
106 // which that prefix of the partition contents has the corresponding
111 // interrupted, the partition might contain either the source or the
113 // the length in order to read from a partition (there is no
134 const char* partition = strtok(NULL, ":");
179 const MtdPartition* mtd = mtd_find_partition_by_name(partition);
181 printf("mtd partition \"%s\" not found (loading %s)\n",
182 partition, filename);
188 printf("failed to initialize read of mtd partition \"%s\"\n",
189 partition);
195 dev = fopen(partition, "rb");
197 printf("failed to open emmc partition \"%s\": %s\n",
198 partition, strerror(errno));
229 printf("short read (%d bytes of %d) for partition \"%s\"\n",
230 read, next, partition);
254 // we have a match. stop reading the partition; we'll return
256 printf("partition read matched size %d sha %s\n",
278 printf("contents of partition \"%s\" didn't match %s\n",
279 partition, filename);
337 // Write a memory buffer to 'target' partition, a string of the form
338 // "MTD:<partition>[:...]" or "EMMC:<partition_device>:". Return 0 on
354 const char* partition = strtok(NULL, ":");
356 if (partition == NULL) {
357 printf("bad partition target name \"%s\"\n", target);
368 const MtdPartition* mtd = mtd_find_partition_by_name(partition);
370 printf("mtd partition \"%s\" not found for writing\n",
371 partition);
377 printf("failed to init mtd partition \"%s\" for writing\n",
378 partition);
385 written, len, partition);
391 printf("error finishing mtd write of %s\n", partition);
397 printf("error closing mtd write of %s\n", partition);
404 FILE* f = fopen(partition, "wb");
407 partition, strerror(errno));
411 printf("error closing %s (%s)\n", partition, strerror(errno));
589 // <source_filename> may refer to a partition to read the source data.
696 // If the target is a partition, we're actually going to
698 // partition. statfs() always returns 0 blocks free for
703 // the partition write is interrupted.
737 // deleting the source if the source is a partition. If
740 "is partition\n");
856 // Copy the temp file to the partition.