diff --git a/util-linux-Add-sw64-architecture.patch b/util-linux-Add-sw64-architecture.patch index 6c7146606c08bf0c8007fd647cd13a81be3eba83..5c9c4b944755915655b95feb01d1d0317adc3935 100644 --- a/util-linux-Add-sw64-architecture.patch +++ b/util-linux-Add-sw64-architecture.patch @@ -323,4 +323,226 @@ index 675468d..bce8706 100755 ;; -- 2.33.0 - +diff --git a/tests/expected/fdisk/bsd_0_64_sw_64.LE b/tests/expected/fdisk/bsd_0_64_sw_64.LE +new file mode 100644 +index 0000000..96d2af1 +--- /dev/null ++++ b/tests/expected/fdisk/bsd_0_64_sw_64.LE +@@ -0,0 +1,217 @@ ++BSD_LABELSECTOR=0 ++BSD_LABELOFFSET=64 ++BSD_EXTRA=_sw_64 ++BYTE_ORDER=LE ++ ++Initialize empty image ++00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ++* ++00a00000 ++Create new DOS partition table ++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 00 |................| ++000001c0 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 |................| ++* ++00a00000 ++ ++---layout---------- ++Disk : 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 / bytes ++Disklabel type: dos ++Disk identifier: ++------------------- ++ ++Create 1st 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 00 |!..A............| ++000001d0 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 |................| ++* ++00a00000 ++ ++---layout---------- ++Disk : 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 / bytes ++Disklabel type: dos ++Disk identifier: ++ ++Device Boot Start End Sectors Size Id Type ++1 2048 4095 2048 1M 83 Linux ++------------------- ++ ++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.....@....| ++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 |................| ++* ++00a00000 ++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.....@....| ++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 |................| ++* ++00a00000 ++ ++---layout---------- ++Disk : 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 / 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 ++------------------- ++ ++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.....@....| ++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 |................| ++* ++00200040 57 45 56 82 06 00 00 00 00 00 00 00 00 00 00 00 |WEV.............| ++00200050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ++00200060 00 00 00 00 00 00 00 00 00 02 00 00 3f 00 00 00 |............?...| ++00200070 ff 00 00 00 01 00 00 00 c1 3e 00 00 c1 3e 00 00 |.........>...>..| ++00200080 00 00 00 00 00 00 00 00 10 0e 01 00 00 00 00 00 |................| ++00200090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ++* ++002000c0 00 00 00 00 57 45 56 82 13 62 04 00 00 20 00 00 |....WEV..b... ..| ++002000d0 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |. ..............| ++002000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ++002000f0 00 00 00 00 00 40 00 00 00 10 00 00 00 00 00 00 |.....@..........| ++00200100 00 00 00 00 c1 3e 00 00 00 00 00 00 00 00 00 00 |.....>..........| ++00200110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ++* ++002001f0 00 00 00 00 00 00 00 00 3a 27 5c 82 1f 23 57 82 |........:'\..#W.| ++00200200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ++* ++00a00000 ++ ++---layout---------- ++ ++Welcome to fdisk . ++Changes will remain in memory only, until you decide to write them. ++Be careful before using the write command. ++ ++ ++Command (m for help): Entering nested BSD disklabel. ++ ++Command (m for help): Disk 2: 10 MiB, 10485760 bytes, 20480 sectors ++Geometry: 255 heads, 63 sectors/track, 1 cylinders ++Units: sectors of 1 * 512 = 512 bytes ++Sector size (logical/physical): 512 bytes / 512 bytes ++I/O size (minimum/optimal): 512 bytes / bytes ++Disklabel type: bsd ++ ++Slice Start End Sectors Size Type Fsize Bsize Cpg ++c 4096 20479 16384 8M unused 0 0 0 ++d 0 16064 16065 7.8M unused 0 0 0 ++ ++Partition table entries are not in disk order. ++ ++Command (m for help): Leaving nested disklabel. ++ ++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.....@....| ++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 |................| ++* ++00200040 57 45 56 82 06 00 00 00 00 00 00 00 00 00 00 00 |WEV.............| ++00200050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ++00200060 00 00 00 00 00 00 00 00 00 02 00 00 3f 00 00 00 |............?...| ++00200070 ff 00 00 00 01 00 00 00 c1 3e 00 00 c1 3e 00 00 |.........>...>..| ++00200080 00 00 00 00 00 00 00 00 10 0e 01 00 00 00 00 00 |................| ++00200090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ++* ++002000c0 00 00 00 00 57 45 56 82 15 7a 04 00 00 20 00 00 |....WEV..z... ..| ++002000d0 00 20 00 00 01 08 00 00 00 10 00 00 00 00 00 00 |. ..............| ++002000e0 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ++002000f0 00 00 00 00 00 40 00 00 00 10 00 00 00 00 00 00 |.....@..........| ++00200100 00 00 00 00 c1 3e 00 00 00 00 00 00 00 00 00 00 |.....>..........| ++00200110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ++* ++002001f0 00 00 00 00 00 00 00 00 43 4f 5c 82 20 2b 57 82 |........CO\. +W.| ++00200200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ++* ++00a00000 ++ ++---layout---------- ++ ++Welcome to fdisk . ++Changes will remain in memory only, until you decide to write them. ++Be careful before using the write command. ++ ++ ++Command (m for help): Entering nested BSD disklabel. ++ ++Command (m for help): Disk 2: 10 MiB, 10485760 bytes, 20480 sectors ++Geometry: 255 heads, 63 sectors/track, 1 cylinders ++Units: sectors of 1 * 512 = 512 bytes ++Sector size (logical/physical): 512 bytes / 512 bytes ++I/O size (minimum/optimal): 512 bytes / bytes ++Disklabel type: bsd ++ ++Slice Start End Sectors Size Type Fsize Bsize Cpg ++a 4096 6144 2049 1M 4.2BSD 0 0 0 ++c 4096 20479 16384 8M unused 0 0 0 ++d 0 16064 16065 7.8M unused 0 0 0 ++ ++Partition table entries are not in disk order. ++ ++Command (m for help): Leaving nested disklabel. ++ ++Command (m for help): ++------------------- ++ ++ ++ ++Changes will remain in memory only, until you decide to write them. ++Be careful before using the write command. ++ ++ ++Command (m for help): Entering nested BSD disklabel. ++ ++Command (m for help): ++00 unused 05 4.1BSD 09 4.4LFS 0d boot ++01 swap 06 Eighth Edition 0a unknown 0e ADOS ++02 Version 6 07 4.2BSD 0b HPFS 0f HFS ++03 Version 7 08 ext2 0c ISO-9660 10 AdvFS ++04 System V ++ ++Command (m for help):