Accepting request 898986 from home:polslinux:branches:filesystems
- Update to 1.0.8 * Fixed double byte swap operation on writes of partition name data on big-endian systems; this is in addition to the double byte swap fix on reading partition label data fixed in 1.0.7. (Thanks to Erik Larsson for both fixes.) * Added feature to gdisk and sgdisk to enable swapping the byte order of partition names, so as to correct disks already affected by the preceding bug. This option is 'b' on the experts' menu in gdisk and -b/--byte-swap-name in sgdisk. This seems advanced/obscure enough that I don't want to clutter cgdisk's menu with this option, so I haven't added it there. * Added type code for the Barebox boot loader (0xbb00; 4778ED65-BF42-45FA-9C5B-287A1DC4AAB1). * Fixed bug that caused spurious warnings about the partition table header claiming an invalid size of partition entries when reading some MBR disks. * Added ARM64 as an architecture for the Mac builds of gdisk and fixparts. The official GPT fdisk binaries of these files for macOS are now "universal" x86-64/ARM64 binaries, so they will run natively on the new M1 (ARM64) Macs. The sgdisk and cgdisk binaries, though, remain built only for x86-64, because they rely on libraries that are not easily built in "universal" form. * Fixed double byte swap operation on partition label data on big-endian CPUs. This resulted in partition names becoming gibberish on such CPUs. * Added three new type codes: - 0x0701 - Microsoft Storage Replica - 0x0702 - ArcaOS Type 1 - 0x8401 - Storage Performance Development Kit (SPDK) block device - Drop fix-spurious-warnings.patch OBS-URL: https://build.opensuse.org/request/show/898986 OBS-URL: https://build.opensuse.org/package/show/filesystems/gptfdisk?expand=0&rev=20
This commit is contained in:
parent
d8411f2dc2
commit
4ebbf60ec8
@ -1,33 +0,0 @@
|
||||
Commit f063fe08e424c99f133df18bf9dce49c851bcb0a:
|
||||
Fixed bug that caused spurious warnings about the partition table
|
||||
header claiming an invalid size of partition entries when reading
|
||||
some MBR disks.
|
||||
See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981231
|
||||
|
||||
--- a/gpt.cc
|
||||
+++ b/gpt.cc
|
||||
@@ -1042,11 +1042,19 @@
|
||||
*crcOk = CheckHeaderCRC(&tempHeader);
|
||||
|
||||
if (tempHeader.sizeOfPartitionEntries != sizeof(GPTPart)) {
|
||||
- cerr << "Warning: Partition table header claims that the size of partition table\n";
|
||||
- cerr << "entries is " << tempHeader.sizeOfPartitionEntries << " bytes, but this program ";
|
||||
- cerr << " supports only " << sizeof(GPTPart) << "-byte entries.\n";
|
||||
- cerr << "Adjusting accordingly, but partition table may be garbage.\n";
|
||||
- tempHeader.sizeOfPartitionEntries = sizeof(GPTPart);
|
||||
+ // Print the below warning only if the CRC is OK -- but correct the
|
||||
+ // problem either way. The warning is printed only on a valid CRC
|
||||
+ // because otherwise this warning will display inappropriately when
|
||||
+ // reading MBR disks. If the CRC is invalid, then a warning about
|
||||
+ // that will be shown later, so the user will still know that
|
||||
+ // something is wrong.
|
||||
+ if (*crcOk) {
|
||||
+ cerr << "Warning: Partition table header claims that the size of partition table\n";
|
||||
+ cerr << "entries is " << tempHeader.sizeOfPartitionEntries << " bytes, but this program ";
|
||||
+ cerr << " supports only " << sizeof(GPTPart) << "-byte entries.\n";
|
||||
+ cerr << "Adjusting accordingly, but partition table may be garbage.\n";
|
||||
+ }
|
||||
+ tempHeader.sizeOfPartitionEntries = sizeof(GPTPart);
|
||||
}
|
||||
|
||||
if (allOK && (numParts != tempHeader.numParts) && *crcOk) {
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ddc551d643a53f0bd4440345d3ae32c49b04a797e9c01036ea460b6bb4168ca8
|
||||
size 207017
|
3
gptfdisk-1.0.8.tar.gz
Normal file
3
gptfdisk-1.0.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:95d19856f004dabc4b8c342b2612e8d0a9eebdd52004297188369f152e9dc6df
|
||||
size 208958
|
@ -1,3 +1,36 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 10 08:23:55 UTC 2021 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
- Update to 1.0.8
|
||||
* Fixed double byte swap operation on writes of partition name data on
|
||||
big-endian systems; this is in addition to the double byte swap fix on
|
||||
reading partition label data fixed in 1.0.7. (Thanks to Erik Larsson for
|
||||
both fixes.)
|
||||
* Added feature to gdisk and sgdisk to enable swapping the byte order of
|
||||
partition names, so as to correct disks already affected by the preceding
|
||||
bug. This option is 'b' on the experts' menu in gdisk and
|
||||
-b/--byte-swap-name in sgdisk. This seems advanced/obscure enough that I
|
||||
don't want to clutter cgdisk's menu with this option, so I haven't added
|
||||
it there.
|
||||
* Added type code for the Barebox boot loader (0xbb00;
|
||||
4778ED65-BF42-45FA-9C5B-287A1DC4AAB1).
|
||||
* Fixed bug that caused spurious warnings about the partition table
|
||||
header claiming an invalid size of partition entries when reading
|
||||
some MBR disks.
|
||||
* Added ARM64 as an architecture for the Mac builds of gdisk and fixparts.
|
||||
The official GPT fdisk binaries of these files for macOS are now
|
||||
"universal" x86-64/ARM64 binaries, so they will run natively on the new M1
|
||||
(ARM64) Macs. The sgdisk and cgdisk binaries, though, remain built only
|
||||
for x86-64, because they rely on libraries that are not easily built in
|
||||
"universal" form.
|
||||
* Fixed double byte swap operation on partition label data on big-endian
|
||||
CPUs. This resulted in partition names becoming gibberish on such CPUs.
|
||||
* Added three new type codes:
|
||||
- 0x0701 - Microsoft Storage Replica
|
||||
- 0x0702 - ArcaOS Type 1
|
||||
- 0x8401 - Storage Performance Development Kit (SPDK) block device
|
||||
- Drop fix-spurious-warnings.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 16 00:22:32 UTC 2021 - Manfred Schwarb <manfred99@gmx.ch>
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: gptfdisk
|
||||
Version: 1.0.6
|
||||
Version: 1.0.8
|
||||
Release: 0
|
||||
Summary: GPT partitioning and MBR repair software
|
||||
License: GPL-2.0-only
|
||||
@ -25,7 +25,6 @@ Group: System/Base
|
||||
URL: http://rodsbooks.com/gdisk
|
||||
|
||||
Source: https://downloads.sf.net/%name/%name-%version.tar.gz
|
||||
Patch0: fix-spurious-warnings.patch
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: pkgconfig(popt)
|
||||
|
Loading…
Reference in New Issue
Block a user