diff options
author | Karel Zak | 2014-10-07 14:54:58 +0200 |
---|---|---|
committer | Karel Zak | 2014-10-07 14:54:58 +0200 |
commit | 5f176957297578382b825ed8636342d4a10b9389 (patch) | |
tree | 35cff191a4b125052e9dcac2f47d6ce05bc83a87 /tests/expected/sfdisk | |
parent | libmount: fix mnt_is_readonly() #ifdef (diff) | |
download | kernel-qcow2-util-linux-5f176957297578382b825ed8636342d4a10b9389.tar.gz kernel-qcow2-util-linux-5f176957297578382b825ed8636342d4a10b9389.tar.xz kernel-qcow2-util-linux-5f176957297578382b825ed8636342d4a10b9389.zip |
tests: add sfdisk test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/expected/sfdisk')
-rw-r--r-- | tests/expected/sfdisk/dos | 0 | ||||
-rw-r--r-- | tests/expected/sfdisk/dos-activate | 11 | ||||
-rw-r--r-- | tests/expected/sfdisk/dos-read-dump | 26 | ||||
-rw-r--r-- | tests/expected/sfdisk/dos-simple-commas | 28 | ||||
-rw-r--r-- | tests/expected/sfdisk/dos-simple-space | 24 | ||||
-rw-r--r-- | tests/expected/sfdisk/dos-write-dump | 9 |
6 files changed, 98 insertions, 0 deletions
diff --git a/tests/expected/sfdisk/dos b/tests/expected/sfdisk/dos new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/expected/sfdisk/dos diff --git a/tests/expected/sfdisk/dos-activate b/tests/expected/sfdisk/dos-activate new file mode 100644 index 000000000..23be9ee6a --- /dev/null +++ b/tests/expected/sfdisk/dos-activate @@ -0,0 +1,11 @@ + +Disk <removed>: 100 cylinders, 32 heads, 32 sectors/track +Units: sectors of 512 bytes, counting from 0 + + Device Boot Start End #sectors Id System +<removed>1 * 2048 8191 6144 83 Linux +<removed>2 8192 14335 6144 82 Linux swap / Solaris +<removed>3 14336 20479 6144 83 Linux +<removed>4 20480 102399 81920 5 Extended +<removed>5 20481 26624 6144 83 Linux +<removed>6 26626 102399 75774 83 Linux diff --git a/tests/expected/sfdisk/dos-read-dump b/tests/expected/sfdisk/dos-read-dump new file mode 100644 index 000000000..c463a0e47 --- /dev/null +++ b/tests/expected/sfdisk/dos-read-dump @@ -0,0 +1,26 @@ +sfdisk: Checking that no-one is using this disk right now ... +sfdisk: OK +sfdisk: <removed>: unrecognized partition table type +sfdisk: No partitions found +sfdisk: Warning: partition 5 does not end at a cylinder boundary +sfdisk: Warning: partition [6] does not start at a cylinder boundary + +Disk <removed>: 100 cylinders, 32 heads, 32 sectors/track +Old situation: +New situation: +Units: sectors of 512 bytes, counting from 0 + + Device Boot Start End #sectors Id System +<removed>1 * 2048 8191 6144 83 Linux +<removed>2 8192 14335 6144 82 Linux swap / Solaris +<removed>3 14336 20479 6144 83 Linux +<removed>4 20480 102399 81920 5 Extended +<removed>5 20481 26624 6144 83 Linux +<removed>6 26626 102399 75774 83 Linux +Successfully wrote the new partition table + +sfdisk: If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) +to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 +(See fdisk(8).) +Re-reading the partition table ... + diff --git a/tests/expected/sfdisk/dos-simple-commas b/tests/expected/sfdisk/dos-simple-commas new file mode 100644 index 000000000..4c41f50f3 --- /dev/null +++ b/tests/expected/sfdisk/dos-simple-commas @@ -0,0 +1,28 @@ +sfdisk: Checking that no-one is using this disk right now ... +sfdisk: OK +sfdisk: <removed>: unrecognized partition table type +sfdisk: No partitions found +sfdisk: Warning: partition 5 does not end at a cylinder boundary +sfdisk: Warning: partition [6] does not start at a cylinder boundary +sfdisk: Warning: no primary partition is marked bootable (active) +This does not matter for LILO, but the DOS MBR will not boot this disk. + +Disk <removed>: 100 cylinders, 32 heads, 32 sectors/track +Old situation: +New situation: +Units: sectors of 512 bytes, counting from 0 + + Device Boot Start End #sectors Id System +<removed>1 2048 8191 6144 83 Linux +<removed>2 8192 14335 6144 82 Linux swap / Solaris +<removed>3 14336 20479 6144 83 Linux +<removed>4 20480 102399 81920 5 Extended +<removed>5 20481 26624 6144 83 Linux +<removed>6 26626 102399 75774 83 Linux +Successfully wrote the new partition table + +sfdisk: If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) +to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 +(See fdisk(8).) +Re-reading the partition table ... + diff --git a/tests/expected/sfdisk/dos-simple-space b/tests/expected/sfdisk/dos-simple-space new file mode 100644 index 000000000..137130f05 --- /dev/null +++ b/tests/expected/sfdisk/dos-simple-space @@ -0,0 +1,24 @@ +sfdisk: Checking that no-one is using this disk right now ... +sfdisk: OK +sfdisk: <removed>: unrecognized partition table type +sfdisk: No partitions found +sfdisk: Warning: no primary partition is marked bootable (active) +This does not matter for LILO, but the DOS MBR will not boot this disk. + +Disk <removed>: 100 cylinders, 32 heads, 32 sectors/track +Old situation: +New situation: +Units: sectors of 512 bytes, counting from 0 + + Device Boot Start End #sectors Id System +<removed>1 2048 8191 6144 83 Linux +<removed>2 8192 14335 6144 82 Linux swap / Solaris +<removed>3 1 2047 2047 83 Linux +<removed>4 0 - 0 0 Empty +Successfully wrote the new partition table + +sfdisk: If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) +to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 +(See fdisk(8).) +Re-reading the partition table ... + diff --git a/tests/expected/sfdisk/dos-write-dump b/tests/expected/sfdisk/dos-write-dump new file mode 100644 index 000000000..4d069d21f --- /dev/null +++ b/tests/expected/sfdisk/dos-write-dump @@ -0,0 +1,9 @@ +# partition table of <removed> +unit: sectors + +<removed>1 : start= 2048, size= 6144, Id=83, bootable +<removed>2 : start= 8192, size= 6144, Id=82 +<removed>3 : start= 14336, size= 6144, Id=83 +<removed>4 : start= 20480, size= 81920, Id= 5 +<removed>5 : start= 20481, size= 6144, Id=83 +<removed>6 : start= 26626, size= 75774, Id=83 |