Rod Smith
edc67b66db
Patch set from Bin Meng to clean up some code & support building sgdisk for Windows
2022-04-10 09:28:08 -04:00
Rod Smith
331ad9c795
Add ability to reverse byte order of partition names to gdisk and sgdisk
2021-06-08 15:23:02 -04:00
Erik Larsson
fded770b55
gptpart.cc: Remove byteswap commands in GPTPart::SetName(const string&).
...
The byteswapping done in GPTPart::SetName(const string&) was reversed
later when GPTPart::ReversePartBytes() was called.
The intended design seems to have been to keep the fields in native
endianness until just before the partition is written to disk when all
the GPTPart data is byteswapped all at once with a call to
GPTPart::ReversePartBytes().
However this was defeated by leaving the original byteswaps in there and
effectively the name was swapped back to the native-endian form. For big
endian systems this meant that a UTF-16BE string was written to disk,
violating the specification and causing interoperability problems.
Fixed by removing these inline byteswaps in GPTPart::SetName(const
string&).
2021-06-08 16:11:21 +03:00
Erik Larsson
2a15a246a1
gptpart.cc: Minor fix to end comment of GPTPart::ReversePartBytes(void).
...
The end comment was confusingly saying ReverseBytes instead of
ReversePartBytes.
2021-06-08 15:49:03 +03:00
Erik Larsson
86dd5fea35
gptpart.cc: Fix double byteswap for big-endian architectures.
...
The data in 'name' was already byteswapped by ReversePartBytes, so
byteswapping it again in GetDescription returned each UTF-16BE unit back
to UTF-16LE and caused seemingly garbage strings to be printed.
2021-03-07 14:46:59 +00:00
Gilles Moris
94b1490b7b
Create a constant unusedPartType object instead of recreating it each time
2019-05-15 07:07:21 +02:00
Gilles Moris
faaaa2618f
gdisk: use previous code when changing partition type to be idempotent like cgdisk
2019-05-15 06:46:32 +02:00
Gilles Moris
a84363b9b1
gdisk: show also previous type as cgdisk does when changing partition type
2019-05-15 06:42:41 +02:00
Rod Smith
9ae60195b9
Added explicit copy constructors and made other tweaks to avoid
...
compiler complaints.
2018-07-05 16:50:13 -04:00
Rod Smith
44cda477df
Added search/filter feature to "L" function to display partition type
...
codes.
2018-07-05 09:07:58 -04:00
Roderick W. Smith
f694803eca
Fixes for minor typos and trivial bugs.
2014-03-29 00:27:33 -04:00
Roderick W. Smith
a345a92260
Refinements to new treatment of hybrid MBR and MBR conversions that
...
span the 2TiB boundary.
2014-02-22 12:12:32 -05:00
Roderick W. Smith
9b338c50f2
Fixed new bug with hybrid MBR creation in gdisk; couldn't do more than
...
one partition because of sscanf weirdness.
2014-02-20 11:13:36 -05:00
Roderick W. Smith
84aaff6b9c
Removed libicu dependency for UTF-16 partition names. Version 0.8.9
...
release.
2014-02-17 16:17:11 -05:00
Roderick W. Smith
e3ee733ff8
Removed 0x8302 type code, since the Red Hat parted developers have
...
decided against using it.
2013-09-24 12:56:11 -04:00
Roderick W. Smith
af39cb48d0
Fix error in gdisk man page.
2013-08-06 15:23:46 -04:00
Roderick W. Smith
1eea9b0b51
New partition type codes & "-a" option for cgdisk
2013-07-06 22:52:58 -04:00
srs5694
f5dfbfa418
Change to alignment code in sgdisk.
2013-02-14 20:47:14 -05:00
srs5694
0741fa21ac
0.8.6 release.
2013-01-09 12:55:40 -05:00
srs5694
d8eed46294
Added partition type codes; new verification check.
2012-12-15 01:55:21 -05:00
srs5694
e69e6807cf
Fixes related to handling of GPTs created under Solaris
2012-01-20 22:37:12 -05:00
srs5694
00b6d7a460
0.7.2 release, includes new Linux type code & true GUID generation in
...
Windows
2011-06-26 22:40:06 -04:00
srs5694
699941e25a
0.7.1 release version
2011-03-21 21:33:57 -04:00
srs5694
5a6085310b
Preliminary UTF-16LE support for GPT descriptions
2011-03-17 13:53:01 -04:00
srs5694
c2f6e0cb81
A few miscellaneous changes
2011-03-16 02:42:33 -04:00
srs5694
01f7f08624
Second patchset from Florian & a few other small changes
2011-03-15 23:53:31 -04:00
srs5694
9a46b042c5
Patches supplied by Florian Zumbiehl
2011-03-15 00:34:10 -04:00
srs5694
bf8950cad0
Version 0.7.0
2011-03-12 01:23:12 -05:00
srs5694
64cbd17106
Misc. bug fixes & restructuring.
2011-03-01 22:03:54 -05:00
srs5694
0873e9d0e9
Version 0.6.12 release; mostly changes in support for disks with other
...
than 512-byte sectors.
2010-10-07 13:00:45 -04:00
srs5694
ab4b043839
Final 0.6.11 version; only trivial changes
2010-09-25 20:39:52 -04:00
srs5694
5a081757ea
Added -F option to sgdisk
2010-09-24 20:39:41 -04:00
srs5694
82f3f0b529
Further refinements to GUID type code entry.
2010-09-22 10:50:24 -04:00
srs5694
55d926192a
Updated project files for 0.6.5 release version.
2010-03-07 22:16:07 -05:00
srs5694
08bb0da079
Version 0.6.4
2010-02-19 17:19:55 -05:00
srs5694
cb76c673ee
A few minor bug fixes; backup function now accepts dd output of MBR,
...
main header, and main partition table, as well as gdisk-generated
backups.
2010-02-11 22:22:22 -05:00
srs5694
6699b01eda
Version 0.6.3 release. Big-endian bug fix, new GUID generation method,
...
architectural changes.
2010-02-04 00:55:30 -05:00
srs5694
e321d444dc
Final 0.6.2 release; misc. bug fixes & Windows version
2010-01-29 17:44:04 -05:00
srs5694
0a6973119c
Nearing 0.6.2 release; Windows version now works.
2010-01-28 21:10:52 -05:00
srs5694
fed16d043a
Misc. updates and bug fixes
2010-01-27 23:03:40 -05:00
srs5694
546a9c7c36
New files to support disk I/O restructuring and (currently broken)
...
Windows version.
2010-01-26 16:00:26 -05:00
srs5694
ba00fed2ef
sgdisk program, misc. bug fixes
2010-01-12 18:18:36 -05:00
srs5694
5d58fe0ea1
Version 0.5.3 changes. Minor bug fixes & detection of the number of
...
logical sectors per physical sector on Linux 2.6.32 and above.
2010-01-03 20:57:08 -05:00
srs5694
978041ca61
GPT fdisk 0.5.0
...
Added several features, including a restructuring of the menu system,
GPT-to-MBR conversion, and the ability to re-read the MBR to generate
a fresh GPT from the current on-disk MBR.
2009-09-21 20:51:47 -04:00
srs5694
e35eb1beb6
Updates for version 0.4.2
...
New feature: Ability to edit disk images.
Several small bug fixes and feature enhancements (see CHANGELOG).
2009-09-14 00:29:34 -04:00
srs5694
a0eb11a64b
Added new files
2009-08-29 15:00:08 -04:00