summaryrefslogtreecommitdiffstats
path: root/tests/expected/sfdisk
diff options
context:
space:
mode:
authorKarel Zak2017-07-19 15:34:35 +0200
committerKarel Zak2017-07-19 15:34:35 +0200
commit2d9d3ee294ee68a891fa506f33c3865570425204 (patch)
treed471b0ad1afe4536bbae6f20ecf2daf49c8d1d86 /tests/expected/sfdisk
parentlibfdisk: allow to resize in unsorted partition table (diff)
downloadkernel-qcow2-util-linux-2d9d3ee294ee68a891fa506f33c3865570425204.tar.gz
kernel-qcow2-util-linux-2d9d3ee294ee68a891fa506f33c3865570425204.tar.xz
kernel-qcow2-util-linux-2d9d3ee294ee68a891fa506f33c3865570425204.zip
tests: check sfdisk resize on unsorted offsets
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/expected/sfdisk')
-rw-r--r--tests/expected/sfdisk/resize-dos-unsorted72
1 files changed, 72 insertions, 0 deletions
diff --git a/tests/expected/sfdisk/resize-dos-unsorted b/tests/expected/sfdisk/resize-dos-unsorted
new file mode 100644
index 000000000..21dbe5b12
--- /dev/null
+++ b/tests/expected/sfdisk/resize-dos-unsorted
@@ -0,0 +1,72 @@
+Disk <removed>: 100 MiB, 104857600 bytes, 204800 sectors
+Units: sectors of 1 * 512 = 512 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / <removed> bytes
+
+>>> Script header accepted.
+>>> Script header accepted.
+>>> Script header accepted.
+>>> Script header accepted.
+>>> Created a new <removed>.
+<removed>1: Created a new <removed>.
+<removed>2: Created a new <removed>.
+<removed>3: Created a new <removed>.
+<removed>4: Created a new <removed>.
+<removed>5: Created a new <removed>.
+<removed>6: Created a new <removed>.
+<removed>7: Done.
+
+New situation:
+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 108543 102400 50M 5 Extended
+<removed>4 108544 110591 2048 1M 83 Linux
+<removed>5 8192 10239 2048 1M 83 Linux
+<removed>6 12288 108543 96256 47M 83 Linux
+
+Partition table entries are not in disk order.
+
+The partition table has been altered.
+Calling ioctl() to re-read partition table.
+Syncing disks.
+Disk <removed>: 100 MiB, 104857600 bytes, 204800 sectors
+Units: sectors of 1 * 512 = 512 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / <removed> bytes
+Disklabel type: dos
+Disk identifier: <removed>
+
+Old situation:
+
+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 108543 102400 50M 5 Extended
+<removed>4 108544 110591 2048 1M 83 Linux
+<removed>5 8192 10239 2048 1M 83 Linux
+<removed>6 12288 108543 96256 47M 83 Linux
+
+Partition table entries are not in disk order.
+
+<removed>4:
+New situation:
+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 108543 102400 50M 5 Extended
+<removed>4 108544 204799 96256 47M 83 Linux
+<removed>5 8192 10239 2048 1M 83 Linux
+<removed>6 12288 108543 96256 47M 83 Linux
+
+Partition table entries are not in disk order.
+
+The partition table has been altered.
+Calling ioctl() to re-read partition table.
+Syncing disks.