summaryrefslogtreecommitdiffstats
path: root/sbin/gpt
Commit message (Collapse)AuthorAgeFilesLines
* Document the remove command.marcel2004-08-071-1/+37
|
* Implement a remove command. The remove command iterates the GPTmarcel2004-08-075-3/+217
| | | | | | | | | partitions and removes any that matches the pre-conditions. The options are the same for the add command and are used to select the partitions to remove. Currently the remove command without any options deletes all GPT partitions. This is rather harmful and will need anti-footshooting measures.
* Use __FBSDID.marcel2004-08-077-14/+21
|
* o Save the partition number (=index) in the internal map. The indexmarcel2004-08-076-34/+75
| | | | | | | | | | starts at 1. No index is represented by 0. o Change the show command to display the partition number at the expense of the partition end columm. We already display the start and size. o Enhance the add command to accept the -i option. The -i option allows the user to specify which partition number the new partition should get. o Update the manpage accordingly.
* Add Linux swap partition and MS reserved partition descriptions.marcel2004-08-021-19/+27
| | | | | | | | | | | | | While here: o Make the UUIDs static to avoid runtime initialization, o Rename ext to mslinux, o Replace the use of memcmp() with uuid_equal(), o Various style(9) improvements, o Order the comparisons based on importance, o Remove the word partition from all the descriptions, o Other description improvements. Includes patch from: T. Muthu Mohan < Muthu_T at dell dot com >
* What's in a name: s/disklabel/bsdlabel/marcel2004-08-021-1/+1
|
* Bump up the date and add spaces around commas. Thanks to ru@ for noticing.arun2004-07-021-2/+2
|
* Added the ability to create and display Linux/Windows GPT partitions to gpt(8).arun2004-07-013-3/+10
|
* style.Makefile(5):johan2004-02-231-1/+1
| | | | Use WARNS?= instead of WARNS=.
* - Add GPT header/table recovery commandkensmith2003-11-162-4/+92
| | | | | | - Minor related cleanup in add command Approved by: marcel
* - Provide default values for LABELOFFSET and LABELSECTOR sokensmith2003-11-161-0/+11
| | | | | | it compiles on all architectures. Approved by: marcel
* Assorted mdoc(7) fixes.ru2003-06-021-37/+42
|
* Show the paritition types that we recognize in human readable format. eg:peter2003-02-131-4/+28
| | | | | | | | | | | | | pluto2# gpt show da0 start end size contents 0 0 1 PMBR 1 1 1 Pri GPT header 2 33 32 Pri GPT table 34 401595 401562 GPT part - EFI System partition 401596 925883 524288 GPT part - FreeBSD ufs partition 925884 9314491 8388608 GPT part - FreeBSD swap partition ... It'll print a plain uuid string for unrecognized types.
* o Newer EFI implementations require that a GPT is preceeded bymarcel2002-12-025-55/+153
| | | | | | | | | | | | | | | | | | a PMBR. Make sure the create command creates a PMBR as well (if not already present). o When parsing the MBR, explicitly check for a PMBR and create a PMBR map node if one is found. o When parsing the MBR, recurse to handle extended partitions. This allows us to flatten nested MBRs when migrating to a GPT. o Have the migrate command bail out if it encounters a partition it doesn't know how to migrate. This avoids data loss. o Change the output of the show command so that the UUIDs of the GPT partitions fit on the same line. o Show when partitions are extended partitions and add the PMBR type. Approved by: re (blanket)
* Add a manpage. Nobody expects the spanish inquisition, but themarcel2002-12-012-1/+233
| | | | | | mdoc(7) police... It's all yours ru :-) Approved by: re (blanket)
* Allow aliases to be used when specifying partition types. The use ofmarcel2002-11-301-5/+14
| | | | | | | | | | | UUIDs can then be limited to those cases when an alias doesn't exist. This greatly increases the likelyhood that a sysadmin finishes the partitioning without intermittent mental breakdowns. Current aliases are "efi", "swap" and "ufs". While here, staticize global variables and expand the usage message. Approved by: re (blanket)
* Remove inclusion of <sys/uuid.h>. We now include <sys/uuid.h> inmarcel2002-11-107-7/+0
| | | | | | <sys/gpt.h>. This avoids having to include both <sys/uuid.h> and <uuid.h>, which is considered by your friendly committer to be aestheticly displeasing (= ballyhoo barf barf :-)
* o Remove the fallback implementations of uuid_create(),marcel2002-11-026-68/+5
| | | | | uuid_from_string(), uuid_is_nil() and uuid_to_string(). o Include <uuid.h> where appropriate.
* o Add functionality to add a GPT partition,marcel2002-10-279-104/+389
| | | | | | | | | | | | o Use DCE compliant UUID functions and provide local implementations if they don't exist, o Move dumping of the map to show.c and print the partition type, o Some cleanups and rearrangements. The default GPT partition type is UFS. When no starting block or size are specified, the tool will create a partition in the first free space it find (or that fits, depending on the size).
* Add the functionality to create an (empty) GPT from scratch. Themarcel2002-10-254-2/+199
| | | | | | code is directly copied from migrate.c. The intend is to express migrate in terms of create and add. The functionality to add partitions is not yet there.
* Don't complain if we have an inconsistent map that may be themarcel2002-10-231-8/+13
| | | | | | | | result of an incomplete migration. An incomplete migration is one where the MBR is not turned into a PMBR after creating the GPT. This early in the game it's more convenient to allow the inconsistency, because that avoids that we have to destroy the MBR partitioning for now.
* Make this compile without needing NO_WERROR.peter2002-08-251-1/+1
|
* Grab a snapshot of Marcel's gpt tool. This is still a work-in-progresspeter2002-07-2010-0/+1454
but is useful to have handy. EFI GPT partitions are used instead of the fdisk+disklabel combination. They are pure 64 bit LBA, are fully extensible, support up to 16383 partitons per disk, etc.
OpenPOWER on IntegriCloud