summaryrefslogtreecommitdiff
path: root/gptcl.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge /u/djsp/gptfdisk/ branch fix-largest-new into masterb'Roderick W. Smith2023-03-051-1/+3
|\ | | | | | | https://sourceforge.net/p/gptfdisk/code/merge-requests/31/
| * Allow partition dynamically allocated by --largest-new to be referenced by ↵David Joaquín Shourabi Porcel2023-01-281-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | other options The documentation for the option --new explains that: > [a] partnum value of 0 causes the program to use the first available > partition number. Subsequent uses of the -A (--attributes), -c > (--change-name), -t (--typecode), and -u (--partition-guid) options > may also use 0 to refer to the same partition. Although the documentation for the option --largest-new does not mention such functionality, I expected it, and was puzzled when it didn't work.
* | Fix NULL dereference when duplicating string argumentDamian Kurek2022-07-071-2/+4
|/ | | | | poptGetArg can return NULL if there are no additional arguments, which makes strdup dereference NULL on strlen
* Fix failure & crash of sgdisk when compiled with latest popt (commit 740; ↵Rod Smith2022-04-151-1/+1
| | | | presumably eventually release 1.19)
* Patch set from Bin Meng to clean up some code & support building sgdisk for ↵Rod Smith2022-04-101-1/+3
| | | | Windows
* Add end-alignment feature.Rod Smith2022-01-291-5/+10
|
* Removed another stray debugging messageRod Smith2021-10-091-1/+0
|
* Remove stray debugging codeRod Smith2021-10-091-1/+0
|
* Add ability to reverse byte order of partition names to gdisk and sgdiskRod Smith2021-06-081-0/+11
|
* Merge /u/morisgi/gptfdisk/ branch enhancements into masterRoderick W. Smith2020-02-151-1/+1
|\ | | | | | | https://sourceforge.net/p/gptfdisk/code/merge-requests/15/
| * Create a constant unusedPartType object instead of recreating it each timeGilles Moris2019-05-151-1/+1
| |
* | Support placing GPT last when for hybrid MBRGeoff Williams2019-09-221-3/+17
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some hardware (notably Raspberry PI) requires a small FAT partition be listed as the first MBR partition to boot. At the moment hybrid MBR disks allowing this can only be made using the interactive `gdisk` program by choosing `h` from the recovery menu and answering `N` when asked: ``` Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? ``` This commit brings feature parity to `sgdisk` by changing `-h` to support an optional final partition `EE` indicating that the GPT partition should be listed last in the MBR instead of first. **Examples**: GPT first (current behaviour) ```shell sgdisk -h 1:2 sdcard.img ``` GPT last ```shell sgdisk -h 1:2:EE sdcard.img ```
* Version 1.0.2 release.Rod Smith2017-07-261-1/+1
|
* Initial commit of support for moving main partition table to arbitraryRod Smith2017-07-211-1/+10
| | | | location on disk (within limits based on existing partitions).
* Removed stray debugging message from "sgdisk -c" operation.Rod Smith2016-04-131-1/+0
|
* Fixed bug in sgdisk that caused --largest-new/-N to fail if fed aRoderick W. Smith2015-10-181-2/+2
| | | | | value of "0" for the partition number. (This should work, according to the man page, and now it does.)
* Fixed bug that caused sgdisk to not return an appropriate error codeRoderick W. Smith2015-10-171-1/+2
| | | | (4) when it encountered write errors under some circumstances.
* Changed -z and -Z behavior in sgdisk so that subsequent changes areRoderick W. Smith2015-04-241-5/+6
| | | | written even if -g is not included. Also some man page updates.
* Version 1.0.0 release! Added some type codes and the -O/--print-mbrRoderick W. Smith2015-03-171-0/+4
| | | | option for sgdisk.
* Can now pass "0" as partition number to -A, -c, -t, and -u commands inRoderick W. Smith2014-03-021-8/+19
| | | | | sgdisk *IF* "0" was also used as a partition number in a preceding -n command.
* Refinements to new treatment of hybrid MBR and MBR conversions thatRoderick W. Smith2014-02-221-2/+3
| | | | span the 2TiB boundary.
* Fixed sgdisk problem when creating hybrid MBR with a partition thatRoderick W. Smith2014-02-201-4/+4
| | | | ends beyond sector 2^32. Now refuses to create such partitions.
* Removed 0x8302 type code, since the Red Hat parted developers haveRoderick W. Smith2013-09-241-2/+2
| | | | decided against using it.
* Change to alignment code in sgdisk.srs56942013-02-141-0/+2
|
* 0.8.6 release.srs56942013-01-091-32/+37
|
* Fixed bug: >2TiB partition creation in sgdisksrs56942012-02-031-2/+2
|
* Fixed bug in reading GPTs with encoded header sizes other than 92 bytes.srs56942011-09-181-1/+10
|
* New files in support of version 0.8.0srs56942011-09-101-0/+534