}
}
- itr = fdisk_new_iter(FDISK_ITER_FORWARD);
-
fputc('\n', stdout);
+ itr = fdisk_new_iter(FDISK_ITER_FORWARD);
+
while (itr && fdisk_table_next_partition(tb, itr, &pa) == 0)
fdisk_warn_alignment(cxt, fdisk_partition_get_start(pa),
fdisk_partition_get_partno(pa) + 1);
- if (fdisk_table_wrong_order(tb)) {
+ if (fdisk_table_wrong_order(tb))
fdisk_info(cxt, _("Partition table entries are not in disk order."));
- }
fdisk_unref_table(tb);
fdisk_free_iter(itr);
if (fdisk_dev_has_disklabel(cxt))
list_disklabel(cxt);
- fputc('\n', stdout);
}
static void print_all_devices_pt(struct fdisk_context *cxt)
<removed>p1 2048 22527 20480 10M 83 Linux
<removed>p2 22528 204543 182016 88.9M 83 Linux
+
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
<removed>1 2048 53247 51200 25M 83 Linux
<removed>2 53248 104447 51200 25M 83 Linux
+
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
/dev/md8p1 2048 22527 20480 10M 83 Linux
/dev/md8p2 22528 43007 20480 10M 83 Linux
+
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
<removed>6 77824 88063 10240 5M 83 Linux
<removed>7 90112 102399 12288 6M 83 Linux
+
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
<removed>6 75775 86014 10240 5M 83 Linux
<removed>7 88063 102399 14337 7M 83 Linux
+
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
<removed>1 2048 43007 40960 20M 83 Linux
<removed>2 43008 102399 59392 29M 83 Linux
+
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
<removed>p1 2048 22527 20480 10M 83 Linux
<removed>p2 22528 43007 20480 10M 83 Linux
+
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
<removed>p6 77824 88063 10240 5M 83 Linux
<removed>p7 90112 102399 12288 6M 83 Linux
+
Command (m for help):
<removed>6 77824 88063 10240 5M 83 Linux
<removed>7 90112 102399 12288 6M 83 Linux
+
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
<removed>6 2 3 2 15.7M 83 Linux
Partition table entries are not in disk order.
-
-------------------
Delete primary partition
<removed>6 2 3 2 15.7M 83 Linux
Partition table entries are not in disk order.
-
-------------------
Delete extended partition
<removed>6 14336 18431 4096 2M 83 Linux
Partition table entries are not in disk order.
-
-------------------
Delete primary partition
<removed>6 14336 18431 4096 2M 83 Linux
Partition table entries are not in disk order.
-
-------------------
Delete primary partition
<removed>6 14336 18431 4096 2M 83 Linux
Partition table entries are not in disk order.
-
-------------------
Delete extended partition
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
-
-------------------
Create primary partitions
<removed>4 8192 40959 32768 16M 5 Extended
Partition table entries are not in disk order.
-
-------------------
Create logical partitions
<removed>8 10240 12287 2048 1M 83 Linux
Partition table entries are not in disk order.
-
-------------------
Fix order.
Units: cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
-
Nonexistant file
fdisk: cannot open _a_file_that_does_not_exist_: No such file or directory
Too small file