summaryrefslogtreecommitdiffstats
path: root/tests/expected/sfdisk
diff options
context:
space:
mode:
authorKarel Zak2015-09-09 14:43:31 +0200
committerKarel Zak2015-09-09 14:43:31 +0200
commit161f399f132a504f3acb273a56a39e2758d88616 (patch)
tree133a6f3b5acd2948bd111f419beb0032c4a2e6bc /tests/expected/sfdisk
parentsfdisk: add --move-data (diff)
downloadkernel-qcow2-util-linux-161f399f132a504f3acb273a56a39e2758d88616.tar.gz
kernel-qcow2-util-linux-161f399f132a504f3acb273a56a39e2758d88616.tar.xz
kernel-qcow2-util-linux-161f399f132a504f3acb273a56a39e2758d88616.zip
tests: add sfdisk --move-data test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/expected/sfdisk')
-rw-r--r--tests/expected/sfdisk/movedata-down27
-rw-r--r--tests/expected/sfdisk/movedata-non-overlay27
-rw-r--r--tests/expected/sfdisk/movedata-up27
3 files changed, 81 insertions, 0 deletions
diff --git a/tests/expected/sfdisk/movedata-down b/tests/expected/sfdisk/movedata-down
new file mode 100644
index 000000000..227cf8cbc
--- /dev/null
+++ b/tests/expected/sfdisk/movedata-down
@@ -0,0 +1,27 @@
+Checking that no-one is using this disk right now ... OK
+
+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 / 32768 bytes
+Disklabel type: dos
+Disk identifier: <removed>
+
+Old situation:
+
+Device Boot Start End Sectors Size Id Type
+<removed>1 3048 23527 20480 10M 83 Linux
+
+<removed>1:
+New situation:
+
+Device Boot Start End Sectors Size Id Type
+<removed>1 2548 23027 20480 10M 83 Linux
+
+Data move:
+ typescript file <removed>.
+ old start: 3048, new start: 2548 (move 20480 sectors)
+
+The partition table has been altered.
+Calling ioctl() to re-read partition table.
+Syncing disks.
diff --git a/tests/expected/sfdisk/movedata-non-overlay b/tests/expected/sfdisk/movedata-non-overlay
new file mode 100644
index 000000000..6a07831b9
--- /dev/null
+++ b/tests/expected/sfdisk/movedata-non-overlay
@@ -0,0 +1,27 @@
+Checking that no-one is using this disk right now ... OK
+
+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 / 32768 bytes
+Disklabel type: dos
+Disk identifier: <removed>
+
+Old situation:
+
+Device Boot Start End Sectors Size Id Type
+<removed>1 2548 23027 20480 10M 83 Linux
+
+<removed>1:
+New situation:
+
+Device Boot Start End Sectors Size Id Type
+<removed>1 63988 84467 20480 10M 83 Linux
+
+Data move:
+ typescript file <removed>.
+ old start: 2548, new start: 63988 (move 20480 sectors)
+
+The partition table has been altered.
+Calling ioctl() to re-read partition table.
+Syncing disks.
diff --git a/tests/expected/sfdisk/movedata-up b/tests/expected/sfdisk/movedata-up
new file mode 100644
index 000000000..e68d33bf2
--- /dev/null
+++ b/tests/expected/sfdisk/movedata-up
@@ -0,0 +1,27 @@
+Checking that no-one is using this disk right now ... OK
+
+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 / 32768 bytes
+Disklabel type: dos
+Disk identifier: <removed>
+
+Old situation:
+
+Device Boot Start End Sectors Size Id Type
+<removed>1 2048 22527 20480 10M 83 Linux
+
+<removed>1:
+New situation:
+
+Device Boot Start End Sectors Size Id Type
+<removed>1 3048 23527 20480 10M 83 Linux
+
+Data move:
+ typescript file <removed>.
+ old start: 2048, new start: 3048 (move 20480 sectors)
+
+The partition table has been altered.
+Calling ioctl() to re-read partition table.
+Syncing disks.