diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:30:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:30:35 +0000 |
commit | 378c18e5f024ac5a8aef4cb40d7c9aa9633d144c (patch) | |
tree | 44dfb6ca500d32cabd450649b322a42e70a30683 /tests/expected/libfdisk | |
parent | Initial commit. (diff) | |
download | util-linux-upstream.tar.xz util-linux-upstream.zip |
Adding upstream version 2.38.1.upstream/2.38.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/expected/libfdisk')
28 files changed, 466 insertions, 0 deletions
diff --git a/tests/expected/libfdisk/gpt-all-defaults b/tests/expected/libfdisk/gpt-all-defaults new file mode 100644 index 0000000..218338a --- /dev/null +++ b/tests/expected/libfdisk/gpt-all-defaults @@ -0,0 +1,24 @@ +Checking that no-one is using this disk right now ... OK + +Disk <removed>: 10 MiB, 10485760 bytes, 20480 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. +>>> Created a new disklabel. +<removed>1: Created a new partition <removed>. +<removed>2: Created a new partition <removed>. +<removed>3: Done. + +New situation: +Disklabel type: gpt +Disk identifier: <removed> + +Device Start End Sectors Size Type +<removed>1 2048 12287 10240 5M Linux filesystem +<removed>2 12288 18431 6144 3M Linux filesystem + +The partition table has been altered. +Syncing disks. diff --git a/tests/expected/libfdisk/gpt-all-defaults-with-typo b/tests/expected/libfdisk/gpt-all-defaults-with-typo new file mode 100644 index 0000000..218338a --- /dev/null +++ b/tests/expected/libfdisk/gpt-all-defaults-with-typo @@ -0,0 +1,24 @@ +Checking that no-one is using this disk right now ... OK + +Disk <removed>: 10 MiB, 10485760 bytes, 20480 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. +>>> Created a new disklabel. +<removed>1: Created a new partition <removed>. +<removed>2: Created a new partition <removed>. +<removed>3: Done. + +New situation: +Disklabel type: gpt +Disk identifier: <removed> + +Device Start End Sectors Size Type +<removed>1 2048 12287 10240 5M Linux filesystem +<removed>2 12288 18431 6144 3M Linux filesystem + +The partition table has been altered. +Syncing disks. diff --git a/tests/expected/libfdisk/gpt-getattr b/tests/expected/libfdisk/gpt-getattr new file mode 100644 index 0000000..559a9ae --- /dev/null +++ b/tests/expected/libfdisk/gpt-getattr @@ -0,0 +1,2 @@ +1: 0x0001000000000001 +2: 0x4030000000000000 diff --git a/tests/expected/libfdisk/gpt-setattr b/tests/expected/libfdisk/gpt-setattr new file mode 100644 index 0000000..41af260 --- /dev/null +++ b/tests/expected/libfdisk/gpt-setattr @@ -0,0 +1,2 @@ +GUID:56,57,58,59,60,61,62,63 +LegacyBIOSBootable diff --git a/tests/expected/libfdisk/mkpart b/tests/expected/libfdisk/mkpart new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/expected/libfdisk/mkpart diff --git a/tests/expected/libfdisk/mkpart-full b/tests/expected/libfdisk/mkpart-full new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full diff --git a/tests/expected/libfdisk/mkpart-full-gpt b/tests/expected/libfdisk/mkpart-full-gpt new file mode 100644 index 0000000..8e78a27 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-gpt @@ -0,0 +1,30 @@ +Created a new disklabel. +Requested partition: <partno=0,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=1,start=4096,size=2048> +Created a new partition <removed>. +Requested partition: <partno=2,start=6144,size=2048> +Created a new partition <removed>. +Requested partition: <partno=3,start=8192,size=2048> +Created a new partition <removed>. +Requested partition: <partno=4,start=10240,size=2048> +Created a new partition <removed>. +Requested partition: <partno=5,start=12288,size=2048> +Created a new partition <removed>. +Requested partition: <partno=6,start=14336,size=2048> +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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: gpt +Disk identifier: <removed> + +Device Start End Sectors Size Type +<removed>1 2048 4095 2048 1M Linux filesystem +<removed>2 4096 6143 2048 1M Linux filesystem +<removed>3 6144 8191 2048 1M Linux filesystem +<removed>4 8192 10239 2048 1M Linux filesystem +<removed>5 10240 12287 2048 1M Linux filesystem +<removed>6 12288 14335 2048 1M Linux filesystem +<removed>7 14336 16383 2048 1M Linux filesystem diff --git a/tests/expected/libfdisk/mkpart-full-gpt-err-overlap b/tests/expected/libfdisk/mkpart-full-gpt-err-overlap new file mode 100644 index 0000000..531606e --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-gpt-err-overlap @@ -0,0 +1,12 @@ +Created a new disklabel. +Requested partition: <partno=0,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=1,start=4096,size=2048> +Created a new partition <removed>. +Requested partition: <partno=2,start=6144,size=2048> +Created a new partition <removed>. +Requested partition: <partno=3,start=5000,size=2048> +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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 diff --git a/tests/expected/libfdisk/mkpart-full-gpt-err-overlap.err b/tests/expected/libfdisk/mkpart-full-gpt-err-overlap.err new file mode 100644 index 0000000..bd62a9b --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-gpt-err-overlap.err @@ -0,0 +1,2 @@ +Sector 5000 already used. +sample-fdisk-mkpart-fullspec: failed to add #4 partition diff --git a/tests/expected/libfdisk/mkpart-full-gpt-nopartno b/tests/expected/libfdisk/mkpart-full-gpt-nopartno new file mode 100644 index 0000000..c038c37 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-gpt-nopartno @@ -0,0 +1,30 @@ +Created a new disklabel. +Requested partition: <partno=<default>,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=4096,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=6144,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=8192,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=10240,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=12288,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=14336,size=2048> +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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: gpt +Disk identifier: <removed> + +Device Start End Sectors Size Type +<removed>1 2048 4095 2048 1M Linux filesystem +<removed>2 4096 6143 2048 1M Linux filesystem +<removed>3 6144 8191 2048 1M Linux filesystem +<removed>4 8192 10239 2048 1M Linux filesystem +<removed>5 10240 12287 2048 1M Linux filesystem +<removed>6 12288 14335 2048 1M Linux filesystem +<removed>7 14336 16383 2048 1M Linux filesystem diff --git a/tests/expected/libfdisk/mkpart-full-gpt-partno-gap b/tests/expected/libfdisk/mkpart-full-gpt-partno-gap new file mode 100644 index 0000000..a636e28 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-gpt-partno-gap @@ -0,0 +1,30 @@ +Created a new disklabel. +Requested partition: <partno=0,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=1,start=4096,size=2048> +Created a new partition <removed>. +Requested partition: <partno=3,start=6144,size=2048> +Created a new partition <removed>. +Requested partition: <partno=4,start=8192,size=2048> +Created a new partition <removed>. +Requested partition: <partno=6,start=10240,size=2048> +Created a new partition <removed>. +Requested partition: <partno=7,start=12288,size=2048> +Created a new partition <removed>. +Requested partition: <partno=8,start=14336,size=2048> +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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: gpt +Disk identifier: <removed> + +Device Start End Sectors Size Type +<removed>1 2048 4095 2048 1M Linux filesystem +<removed>2 4096 6143 2048 1M Linux filesystem +<removed>4 6144 8191 2048 1M Linux filesystem +<removed>5 8192 10239 2048 1M Linux filesystem +<removed>7 10240 12287 2048 1M Linux filesystem +<removed>8 12288 14335 2048 1M Linux filesystem +<removed>9 14336 16383 2048 1M Linux filesystem diff --git a/tests/expected/libfdisk/mkpart-full-gpt-space-gap b/tests/expected/libfdisk/mkpart-full-gpt-space-gap new file mode 100644 index 0000000..5dcdb77 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-gpt-space-gap @@ -0,0 +1,24 @@ +Created a new disklabel. +Requested partition: <partno=0,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=1,start=6144,size=2048> +Created a new partition <removed>. +Requested partition: <partno=2,start=8192,size=2048> +Created a new partition <removed>. +Requested partition: <partno=3,start=12288,size=2048> +Created a new partition <removed>. +Requested partition: <partno=4,start=14336,size=2048> +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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: gpt +Disk identifier: <removed> + +Device Start End Sectors Size Type +<removed>1 2048 4095 2048 1M Linux filesystem +<removed>2 6144 8191 2048 1M Linux filesystem +<removed>3 8192 10239 2048 1M Linux filesystem +<removed>4 12288 14335 2048 1M Linux filesystem +<removed>5 14336 16383 2048 1M Linux filesystem diff --git a/tests/expected/libfdisk/mkpart-full-mbr-err-logical b/tests/expected/libfdisk/mkpart-full-mbr-err-logical new file mode 100644 index 0000000..f8e9b7d --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-err-logical @@ -0,0 +1,17 @@ +Created a new disklabel. +Requested partition: <partno=0,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=1,start=4096,size=2048> +Created a new partition <removed>. +Requested partition: <partno=2,start=6144,size=2048> +Created a new partition <removed>. +Requested partition: <partno=3,start=8192,size=22528> +Created a new partition <removed>. +Requested partition: <partno=4,start=10240,size=2048> +Adding logical partition 5 +Created a new partition <removed>. +Requested partition: <partno=5,start=4096,size=2048> +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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 diff --git a/tests/expected/libfdisk/mkpart-full-mbr-err-logical.err b/tests/expected/libfdisk/mkpart-full-mbr-err-logical.err new file mode 100644 index 0000000..014b316 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-err-logical.err @@ -0,0 +1 @@ +sample-fdisk-mkpart-fullspec: failed to add #6 partition diff --git a/tests/expected/libfdisk/mkpart-full-mbr-err-nospace b/tests/expected/libfdisk/mkpart-full-mbr-err-nospace new file mode 100644 index 0000000..e8aff29 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-err-nospace @@ -0,0 +1,10 @@ +Created a new disklabel. +Requested partition: <partno=0,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=1,start=4096,size=2048> +Created a new partition <removed>. +Requested partition: <partno=2,start=4096,size=2048> +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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 diff --git a/tests/expected/libfdisk/mkpart-full-mbr-err-nospace.err b/tests/expected/libfdisk/mkpart-full-mbr-err-nospace.err new file mode 100644 index 0000000..7e44232 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-err-nospace.err @@ -0,0 +1,2 @@ +Start sector 4096 out of range. +sample-fdisk-mkpart-fullspec: failed to add #3 partition diff --git a/tests/expected/libfdisk/mkpart-full-mbr-err-primary b/tests/expected/libfdisk/mkpart-full-mbr-err-primary new file mode 100644 index 0000000..3200751 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-err-primary @@ -0,0 +1,10 @@ +Created a new disklabel. +Requested partition: <partno=0,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=1,start=4096,size=2048> +Created a new partition <removed>. +Requested partition: <partno=6,start=6144,size=2048> +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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 diff --git a/tests/expected/libfdisk/mkpart-full-mbr-err-primary.err b/tests/expected/libfdisk/mkpart-full-mbr-err-primary.err new file mode 100644 index 0000000..59e42e1 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-err-primary.err @@ -0,0 +1,2 @@ +Extended partition does not exists. Failed to add logical partition. +sample-fdisk-mkpart-fullspec: failed to add #7 partition diff --git a/tests/expected/libfdisk/mkpart-full-mbr-logical b/tests/expected/libfdisk/mkpart-full-mbr-logical new file mode 100644 index 0000000..d3d27cb --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-logical @@ -0,0 +1,33 @@ +Created a new disklabel. +Requested partition: <partno=0,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=1,start=4096,size=2048> +Created a new partition <removed>. +Requested partition: <partno=2,start=6144,size=2048> +Created a new partition <removed>. +Requested partition: <partno=3,start=8192,size=22528> +Created a new partition <removed>. +Requested partition: <partno=4,start=10240,size=2048> +Adding logical partition 5 +Created a new partition <removed>. +Requested partition: <partno=5,start=14336,size=2048> +Adding logical partition 6 +Created a new partition <removed>. +Requested partition: <partno=6,start=18432,size=12288> +Adding logical partition 7 +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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> + +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 30719 22528 11M 5 Extended +<removed>5 10240 12287 2048 1M 83 Linux +<removed>6 14336 16383 2048 1M 83 Linux +<removed>7 18432 30719 12288 6M 83 Linux diff --git a/tests/expected/libfdisk/mkpart-full-mbr-nopartno b/tests/expected/libfdisk/mkpart-full-mbr-nopartno new file mode 100644 index 0000000..51aa5a7 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-nopartno @@ -0,0 +1,33 @@ +Created a new disklabel. +Requested partition: <partno=<default>,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=4096,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=6144,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=8192,size=22528> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=10240,size=2048> +Adding logical partition 5 +Created a new partition <removed>. +Requested partition: <partno=<default>,start=14336,size=2048> +Adding logical partition 6 +Created a new partition <removed>. +Requested partition: <partno=<default>,start=18432,size=12288> +Adding logical partition 7 +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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> + +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 30719 22528 11M 5 Extended +<removed>5 10240 12287 2048 1M 83 Linux +<removed>6 14336 16383 2048 1M 83 Linux +<removed>7 18432 30719 12288 6M 83 Linux diff --git a/tests/expected/libfdisk/mkpart-full-mbr-partno-gap b/tests/expected/libfdisk/mkpart-full-mbr-partno-gap new file mode 100644 index 0000000..7f5fab5 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-partno-gap @@ -0,0 +1,26 @@ +Requested partition: <partno=0,start=2048,size=2048> +Requested partition: <partno=2,start=4096,size=2048> +Requested partition: <partno=3,start=6144,size=24576> +Requested partition: <partno=4,start=10240,size=2048> +Requested partition: <partno=5,start=14336,size=2048> +Created a new <removed>. +Created a new <removed>. +Created a new <removed>. +Created a new <removed>. +Adding logical partition 5 +Created a new <removed>. +Adding logical partition 6 +Created a new <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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> + +Device Boot Start End Sectors Size Id Type +<removed>1 2048 4095 2048 1M 83 Linux +<removed>3 4096 6143 2048 1M 83 Linux +<removed>4 6144 30719 24576 12M 5 Extended +<removed>5 10240 12287 2048 1M 83 Linux +<removed>6 14336 16383 2048 1M 83 Linux diff --git a/tests/expected/libfdisk/mkpart-full-mbr-primary b/tests/expected/libfdisk/mkpart-full-mbr-primary new file mode 100644 index 0000000..cd3604f --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-primary @@ -0,0 +1,21 @@ +Created a new disklabel. +Requested partition: <partno=0,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=1,start=4096,size=2048> +Created a new partition <removed>. +Requested partition: <partno=2,start=6144,size=2048> +Created a new partition <removed>. +Requested partition: <partno=3,start=8192,size=22528> +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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> + +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 30719 22528 11M 83 Linux diff --git a/tests/expected/libfdisk/mkpart-full-mbr-primary-nopartno b/tests/expected/libfdisk/mkpart-full-mbr-primary-nopartno new file mode 100644 index 0000000..a8b5819 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-primary-nopartno @@ -0,0 +1,21 @@ +Created a new disklabel. +Requested partition: <partno=<default>,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=4096,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=6144,size=2048> +Created a new partition <removed>. +Requested partition: <partno=<default>,start=8192,size=22528> +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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> + +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 30719 22528 11M 83 Linux diff --git a/tests/expected/libfdisk/mkpart-full-mbr-space-gap b/tests/expected/libfdisk/mkpart-full-mbr-space-gap new file mode 100644 index 0000000..1fe0061 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-full-mbr-space-gap @@ -0,0 +1,18 @@ +Created a new disklabel. +Requested partition: <partno=0,start=2048,size=2048> +Created a new partition <removed>. +Requested partition: <partno=1,start=6144,size=2048> +Created a new partition <removed>. +Requested partition: <partno=2,start=8192,size=2048> +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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> + +Device Boot Start End Sectors Size Id Type +<removed>1 2048 4095 2048 1M 83 Linux +<removed>2 6144 8191 2048 1M 83 Linux +<removed>3 8192 10239 2048 1M 83 Linux diff --git a/tests/expected/libfdisk/mkpart-gpt b/tests/expected/libfdisk/mkpart-gpt new file mode 100644 index 0000000..1c39f6a --- /dev/null +++ b/tests/expected/libfdisk/mkpart-gpt @@ -0,0 +1,23 @@ +Created a new disklabel. +Created a new partition <removed>. +Created a new partition <removed>. +Created a new partition <removed>. +Created a new partition <removed>. +Created a new partition <removed>. +Created a new partition <removed>. +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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: gpt +Disk identifier: <removed> + +Device Start End Sectors Size Type +<removed>1 2048 4095 2048 1M Linux filesystem +<removed>2 4096 6143 2048 1M Linux filesystem +<removed>3 6144 8191 2048 1M Linux filesystem +<removed>4 8192 10239 2048 1M Linux filesystem +<removed>5 10240 12287 2048 1M Linux filesystem +<removed>6 12288 14335 2048 1M Linux filesystem +<removed>7 14336 28671 14336 7M Linux filesystem diff --git a/tests/expected/libfdisk/mkpart-mbr b/tests/expected/libfdisk/mkpart-mbr new file mode 100644 index 0000000..883efd7 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-mbr @@ -0,0 +1,17 @@ +Created a new disklabel. +Created a new partition <removed>. +Created a new partition <removed>. +Created a new partition <removed>. +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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> + +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 30719 22528 11M 83 Linux diff --git a/tests/expected/libfdisk/mkpart-mbr-logic b/tests/expected/libfdisk/mkpart-mbr-logic new file mode 100644 index 0000000..eddaef0 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-mbr-logic @@ -0,0 +1,26 @@ +Created a new disklabel. +Created a new partition <removed>. +Created a new partition <removed>. +Created a new partition <removed>. +Created a new partition <removed>. +Adding logical partition 5 +Created a new partition <removed>. +Adding logical partition 6 +Created a new partition <removed>. +Adding logical partition 7 +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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> + +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 30719 22528 11M 5 Extended +<removed>5 10240 12287 2048 1M 83 Linux +<removed>6 14336 16383 2048 1M 83 Linux +<removed>7 18432 30719 12288 6M 83 Linux diff --git a/tests/expected/libfdisk/mkpart-mbr-nopartno b/tests/expected/libfdisk/mkpart-mbr-nopartno new file mode 100644 index 0000000..eddaef0 --- /dev/null +++ b/tests/expected/libfdisk/mkpart-mbr-nopartno @@ -0,0 +1,26 @@ +Created a new disklabel. +Created a new partition <removed>. +Created a new partition <removed>. +Created a new partition <removed>. +Created a new partition <removed>. +Adding logical partition 5 +Created a new partition <removed>. +Adding logical partition 6 +Created a new partition <removed>. +Adding logical partition 7 +Created a new partition <removed>. +Disk <removed>: 15 MiB, 15728640 bytes, 30720 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> + +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 30719 22528 11M 5 Extended +<removed>5 10240 12287 2048 1M 83 Linux +<removed>6 14336 16383 2048 1M 83 Linux +<removed>7 18432 30719 12288 6M 83 Linux |