From: Anatoly Pugachev Date: Tue, 27 Jul 2021 16:33:03 +0000 (+0300) Subject: tests: fix fdisk/bsd on big endian systems (tested on sparc64 and ppc64) X-Git-Tag: v2.38-rc1~339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=627216cf43c1131866276f6ff1bacae18598a39d;p=thirdparty%2Futil-linux.git tests: fix fdisk/bsd on big endian systems (tested on sparc64 and ppc64) Fixes: 5d0f0ca56 Closes #1392 Signed-off-by: Anatoly Pugachev --- diff --git a/tests/expected/fdisk/bsd_0_64.BE b/tests/expected/fdisk/bsd_0_64.BE index 6b5b44d9e9..4f41d03b04 100644 --- a/tests/expected/fdisk/bsd_0_64.BE +++ b/tests/expected/fdisk/bsd_0_64.BE @@ -47,16 +47,16 @@ I/O size (minimum/optimal): 512 bytes / bytes Disklabel type: dos Disk identifier: -Device Boot Start End Sectors Size Id Type -1 2048 4095 2048 1M 83 Linux +Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs +1 2048 4095 2048 83 Linux 0/32/33 0/65/1 ------------------- Create 2nd primary partition 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001b0 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 20 |............... | -000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 04 |!..A............| -000001d0 01 3e 83 13 41 36 00 10 00 00 00 40 00 00 00 00 |.>..A6.....@....| +000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 41 |!..A...........A| +000001d0 02 00 83 46 05 01 00 10 00 00 00 40 00 00 00 00 |...F.......@....| 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| 00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| @@ -66,8 +66,8 @@ Set 2nd partition type 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001b0 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 20 |............... | -000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 04 |!..A............| -000001d0 01 3e a5 13 41 36 00 10 00 00 00 40 00 00 00 00 |.>..A6.....@....| +000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 41 |!..A...........A| +000001d0 02 00 a5 46 05 01 00 10 00 00 00 40 00 00 00 00 |...F.......@....| 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| 00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| @@ -82,17 +82,17 @@ I/O size (minimum/optimal): 512 bytes / bytes Disklabel type: dos Disk identifier: -Device Boot Start End Sectors Size Id Type -1 2048 4095 2048 1M 83 Linux -2 4096 20479 16384 8M a5 FreeBSD +Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs +1 2048 4095 2048 83 Linux 0/32/33 0/65/1 +2 4096 20479 16384 a5 FreeBSD 0/65/2 1/70/5 ------------------- Create default BSD 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001b0 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 20 |............... | -000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 04 |!..A............| -000001d0 01 3e a5 13 41 36 00 10 00 00 00 40 00 00 00 00 |.>..A6.....@....| +000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 41 |!..A...........A| +000001d0 02 00 a5 46 05 01 00 10 00 00 00 40 00 00 00 00 |...F.......@....| 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| 00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| @@ -144,8 +144,8 @@ Command (m for help): 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001b0 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 20 |............... | -000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 04 |!..A............| -000001d0 01 3e a5 13 41 36 00 10 00 00 00 40 00 00 00 00 |.>..A6.....@....| +000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 41 |!..A...........A| +000001d0 02 00 a5 46 05 01 00 10 00 00 00 40 00 00 00 00 |...F.......@....| 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| 00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| diff --git a/tests/expected/fdisk/bsd_1_0.BE b/tests/expected/fdisk/bsd_1_0.BE index 3092a9b9cd..4c201b06a0 100644 --- a/tests/expected/fdisk/bsd_1_0.BE +++ b/tests/expected/fdisk/bsd_1_0.BE @@ -47,16 +47,16 @@ I/O size (minimum/optimal): 512 bytes / bytes Disklabel type: dos Disk identifier: -Device Boot Start End Sectors Size Id Type -1 2048 4095 2048 1M 83 Linux +Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs +1 2048 4095 2048 83 Linux 0/32/33 0/65/1 ------------------- Create 2nd primary partition 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001b0 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 20 |............... | -000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 04 |!..A............| -000001d0 01 3e 83 13 41 36 00 10 00 00 00 40 00 00 00 00 |.>..A6.....@....| +000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 41 |!..A...........A| +000001d0 02 00 83 46 05 01 00 10 00 00 00 40 00 00 00 00 |...F.......@....| 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| 00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| @@ -66,8 +66,8 @@ Set 2nd partition type 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001b0 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 20 |............... | -000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 04 |!..A............| -000001d0 01 3e a5 13 41 36 00 10 00 00 00 40 00 00 00 00 |.>..A6.....@....| +000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 41 |!..A...........A| +000001d0 02 00 a5 46 05 01 00 10 00 00 00 40 00 00 00 00 |...F.......@....| 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| 00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| @@ -82,17 +82,17 @@ I/O size (minimum/optimal): 512 bytes / bytes Disklabel type: dos Disk identifier: -Device Boot Start End Sectors Size Id Type -1 2048 4095 2048 1M 83 Linux -2 4096 20479 16384 8M a5 FreeBSD +Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs +1 2048 4095 2048 83 Linux 0/32/33 0/65/1 +2 4096 20479 16384 a5 FreeBSD 0/65/2 1/70/5 ------------------- Create default BSD 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001b0 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 20 |............... | -000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 04 |!..A............| -000001d0 01 3e a5 13 41 36 00 10 00 00 00 40 00 00 00 00 |.>..A6.....@....| +000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 41 |!..A...........A| +000001d0 02 00 a5 46 05 01 00 10 00 00 00 40 00 00 00 00 |...F.......@....| 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| 00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| @@ -144,8 +144,8 @@ Command (m for help): 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001b0 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 20 |............... | -000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 04 |!..A............| -000001d0 01 3e a5 13 41 36 00 10 00 00 00 40 00 00 00 00 |.>..A6.....@....| +000001c0 21 00 83 41 01 00 00 08 00 00 00 08 00 00 00 41 |!..A...........A| +000001d0 02 00 a5 46 05 01 00 10 00 00 00 40 00 00 00 00 |...F.......@....| 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| 00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|