rc = fdisk_add_partition(cxt, pa, NULL);
if (rc) {
errno = -rc;
- err(EXIT_FAILURE, "failed to add #%d partition", partno);
+ errx(EXIT_FAILURE, "failed to add #%d partition", partno);
}
fdisk_reset_partition(pa);
rc = fdisk_add_partition(cxt, pa, NULL);
if (rc) {
errno = -rc;
- err(EXIT_FAILURE, "failed to add #%d partition", n + 1);
+ errx(EXIT_FAILURE, "failed to add #%d partition", n + 1);
}
fdisk_reset_partition(pa);
Created a new <removed>.
Created a new <removed>.
Sector 5000 already used.
-sample-fdisk-mkpart-fullspec: failed to add #4 partition: Numerical result out of range
+sample-fdisk-mkpart-fullspec: failed to add #4 partition
Disk <removed>: 15 MiB, 15728640 bytes, 30720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Requested partition: <partno=3,start=8192,size=22528>
Requested partition: <partno=4,start=10240,size=2048>
Requested partition: <partno=5,start=4096,size=2048>
-sample-fdisk-mkpart-fullspec: failed to add #6 partition: Invalid argument
+sample-fdisk-mkpart-fullspec: failed to add #6 partition
Created a new <removed>.
Created a new <removed>.
Created a new <removed>.
Created a new <removed>.
Created a new <removed>.
Start sector 4096 out of range.
-sample-fdisk-mkpart-fullspec: failed to add #3 partition: Numerical result out of range
+sample-fdisk-mkpart-fullspec: failed to add #3 partition
Disk <removed>: 15 MiB, 15728640 bytes, 30720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Created a new <removed>.
Created a new <removed>.
Extended partition does not exists. Failed to add logical partition.
-sample-fdisk-mkpart-fullspec: failed to add #7 partition: Invalid argument
+sample-fdisk-mkpart-fullspec: failed to add #7 partition
Disk <removed>: 15 MiB, 15728640 bytes, 30720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes