summaryrefslogtreecommitdiffstats
path: root/tests/expected/fdisk
diff options
context:
space:
mode:
authorKarel Zak2014-04-23 09:27:13 +0200
committerKarel Zak2014-04-23 09:27:13 +0200
commit63ed346eca967c794428eeaab8af52b715f65cfd (patch)
tree24fa2934febfdc20439601a83016affbecbcb917 /tests/expected/fdisk
parentlibfdisk: (dos) improve logical partition reorder command (diff)
downloadkernel-qcow2-util-linux-63ed346eca967c794428eeaab8af52b715f65cfd.tar.gz
kernel-qcow2-util-linux-63ed346eca967c794428eeaab8af52b715f65cfd.tar.xz
kernel-qcow2-util-linux-63ed346eca967c794428eeaab8af52b715f65cfd.zip
tests: add fdisk 'f' command MBR test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/expected/fdisk')
-rw-r--r--tests/expected/fdisk/mbr-sort77
1 files changed, 77 insertions, 0 deletions
diff --git a/tests/expected/fdisk/mbr-sort b/tests/expected/fdisk/mbr-sort
new file mode 100644
index 000000000..fb897a386
--- /dev/null
+++ b/tests/expected/fdisk/mbr-sort
@@ -0,0 +1,77 @@
+Initialize empty image
+Create new DOS partition table
+
+---layout----------
+Disk <removed>: 20 MiB, 20971520 bytes, 40960 sectors
+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
+
+---layout----------
+Disk <removed>: 20 MiB, 20971520 bytes, 40960 sectors
+Units: sectors of 1 * 512 = 512 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / 512 bytes
+Disklabel type: dos
+Disk identifier: <removed>
+
+Device Boot Start End Sectors Size Id Type
+<removed>1 4096 6143 2048 1M 83 Linux
+<removed>2 2048 4095 2048 1M 83 Linux
+<removed>3 6144 8191 2048 1M 83 Linux
+<removed>4 8192 40959 32768 16M 5 Extended
+
+Partition table entries are not in disk order.
+
+-------------------
+
+Create logical partitions
+
+---layout----------
+Disk <removed>: 20 MiB, 20971520 bytes, 40960 sectors
+Units: sectors of 1 * 512 = 512 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / 512 bytes
+Disklabel type: dos
+Disk identifier: <removed>
+
+Device Boot Start End Sectors Size Id Type
+<removed>1 4096 6143 2048 1M 83 Linux
+<removed>2 2048 4095 2048 1M 83 Linux
+<removed>3 6144 8191 2048 1M 83 Linux
+<removed>4 8192 40959 32768 16M 5 Extended
+<removed>5 14336 16383 2048 1M 83 Linux
+<removed>6 22528 24575 2048 1M 83 Linux
+<removed>7 18432 20479 2048 1M 83 Linux
+<removed>8 10240 12287 2048 1M 83 Linux
+
+Partition table entries are not in disk order.
+
+-------------------
+
+Fix order.
+
+---layout----------
+Disk <removed>: 20 MiB, 20971520 bytes, 40960 sectors
+Units: sectors of 1 * 512 = 512 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / 512 bytes
+Disklabel type: dos
+Disk identifier: <removed>
+
+Device Boot Start End Sectors Size Id Type
+<removed>1 2048 4095 2048 1M 83 Linux
+<removed>2 4096 6143 2048 1M 83 Linux
+<removed>3 6144 8191 2048 1M 83 Linux
+<removed>4 8192 40959 32768 16M 5 Extended
+<removed>5 10240 12287 2048 1M 83 Linux
+<removed>6 14336 16383 2048 1M 83 Linux
+<removed>7 18432 20479 2048 1M 83 Linux
+<removed>8 22528 24575 2048 1M 83 Linux
+
+-------------------
+