diff options
author | Karel Zak | 2017-06-19 16:10:33 +0200 |
---|---|---|
committer | Karel Zak | 2017-06-19 16:25:46 +0200 |
commit | e0bb63d84c0fd4cd10ddb46c228d8a775665cdd1 (patch) | |
tree | 1fffbce62a4872d9ed76f7762e361155a991aa28 /tests/expected/sfdisk | |
parent | libfdisk: support logical partition resize (diff) | |
download | kernel-qcow2-util-linux-e0bb63d84c0fd4cd10ddb46c228d8a775665cdd1.tar.gz kernel-qcow2-util-linux-e0bb63d84c0fd4cd10ddb46c228d8a775665cdd1.tar.xz kernel-qcow2-util-linux-e0bb63d84c0fd4cd10ddb46c228d8a775665cdd1.zip |
tests: add MBR resize tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/expected/sfdisk')
-rw-r--r-- | tests/expected/sfdisk/dos-reduce-empty-extended | 25 | ||||
-rw-r--r-- | tests/expected/sfdisk/dos-resize-empty-extended | 25 | ||||
-rw-r--r-- | tests/expected/sfdisk/dos-resize-extended | 33 | ||||
-rw-r--r-- | tests/expected/sfdisk/dos-resize-logical | 33 |
4 files changed, 116 insertions, 0 deletions
diff --git a/tests/expected/sfdisk/dos-reduce-empty-extended b/tests/expected/sfdisk/dos-reduce-empty-extended new file mode 100644 index 000000000..7c6f8beab --- /dev/null +++ b/tests/expected/sfdisk/dos-reduce-empty-extended @@ -0,0 +1,25 @@ +Disk <removed>: 50 MiB, 52428800 bytes, 102400 sectors +Units: sectors of 1 * 512 = 512 bytes +Sector size (logical/physical): 512 bytes / 4096 bytes +I/O size (minimum/optimal): 4096 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 14335 10240 5M 5 Extended + +<removed>2: +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 10239 6144 3M 5 Extended + +The partition table has been altered. +Calling ioctl() to re-read partition table. +Syncing disks. diff --git a/tests/expected/sfdisk/dos-resize-empty-extended b/tests/expected/sfdisk/dos-resize-empty-extended new file mode 100644 index 000000000..4a2759c7c --- /dev/null +++ b/tests/expected/sfdisk/dos-resize-empty-extended @@ -0,0 +1,25 @@ +Disk <removed>: 50 MiB, 52428800 bytes, 102400 sectors +Units: sectors of 1 * 512 = 512 bytes +Sector size (logical/physical): 512 bytes / 4096 bytes +I/O size (minimum/optimal): 4096 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 8191 4096 2M 5 Extended + +<removed>2: +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 102399 98304 48M 5 Extended + +The partition table has been altered. +Calling ioctl() to re-read partition table. +Syncing disks. diff --git a/tests/expected/sfdisk/dos-resize-extended b/tests/expected/sfdisk/dos-resize-extended new file mode 100644 index 000000000..6b7b099e7 --- /dev/null +++ b/tests/expected/sfdisk/dos-resize-extended @@ -0,0 +1,33 @@ +Disk <removed>: 50 MiB, 52428800 bytes, 102400 sectors +Units: sectors of 1 * 512 = 512 bytes +Sector size (logical/physical): 512 bytes / 4096 bytes +I/O size (minimum/optimal): 4096 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 8191 2048 1M 83 Linux +<removed>4 8192 18431 10240 5M 5 Extended +<removed>5 10240 12287 2048 1M 83 Linux +<removed>6 14336 16383 2048 1M 83 Linux + +<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 8191 2048 1M 83 Linux +<removed>4 8192 102399 94208 46M 5 Extended +<removed>5 10240 12287 2048 1M 83 Linux +<removed>6 14336 16383 2048 1M 83 Linux + +The partition table has been altered. +Calling ioctl() to re-read partition table. +Syncing disks. diff --git a/tests/expected/sfdisk/dos-resize-logical b/tests/expected/sfdisk/dos-resize-logical new file mode 100644 index 000000000..9ceb9a327 --- /dev/null +++ b/tests/expected/sfdisk/dos-resize-logical @@ -0,0 +1,33 @@ +Disk <removed>: 50 MiB, 52428800 bytes, 102400 sectors +Units: sectors of 1 * 512 = 512 bytes +Sector size (logical/physical): 512 bytes / 4096 bytes +I/O size (minimum/optimal): 4096 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 8191 2048 1M 83 Linux +<removed>4 8192 28671 20480 10M 5 Extended +<removed>5 10240 12287 2048 1M 83 Linux +<removed>6 14336 16383 2048 1M 83 Linux + +<removed>6: +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 8191 2048 1M 83 Linux +<removed>4 8192 28671 20480 10M 5 Extended +<removed>5 10240 12287 2048 1M 83 Linux +<removed>6 14336 26623 12288 6M 83 Linux + +The partition table has been altered. +Calling ioctl() to re-read partition table. +Syncing disks. |