OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /eco32/trunk/disk/tools/wrpart
    from Rev 266 to Rev 269
    Reverse comparison

Rev 266 → Rev 269

/wrpart.c
105,7 → 105,7
error("cannot read partition table from disk image '%s'", diskName);
}
convertPartitionTable(ptr, NPE);
/* get partition number, start and size of partition */
/* get partition number, determine start and size of partition */
partno = strtol(partNmbr, &endp, 10);
if (*endp != '\0') {
error("cannot read partition number");
124,7 → 124,7
error("partition %d is larger than the disk", partno);
}
fseek(disk, partStart * SECTOR_SIZE, SEEK_SET);
/* open partition image, check size */
/* open partition image, check size (rounded up to whole sectors) */
image = fopen(partName, "rb");
if (image == NULL) {
error("cannot open partition image '%s'", partName);
133,7 → 133,7
imageSize = (ftell(image) + SECTOR_SIZE - 1) / SECTOR_SIZE;
printf("partition image '%s' occupies %d (0x%X) sectors\n",
partName, imageSize, imageSize);
if (imageSize >= partSize) {
if (imageSize > partSize) {
error("partition image (%d sectors) too big for partition (%d sectors)",
imageSize, partSize);
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.