summaryrefslogtreecommitdiffstats
path: root/sbin/gpt/migrate.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove gpt(8). It's replaced by gpart(8).marcel2008-06-091-372/+0
|
* Add ZFS support.jhb2008-02-051-0/+7
| | | | | | MFC after: 1 week PR: bin/119976 Submitted by: Simun Mikecin numisemis of yahoo.com
* Dot the i's: multiple devices can be specified, so the usage shouldmarcel2005-09-011-1/+1
| | | | have ellipsis following the device.
* o Replace unicode16() by utf8_to_utf16().marcel2005-08-311-9/+10
| | | | | | | | o Introduce utf16_to_utf8(). o Add option -l to the show command to display the GPT label instead of the friendly partition type. o Add option -u to the show command to suppress the friendly output and print th raw UUIDs instead.
* /* -> /*- for license.marcel2005-08-311-1/+1
|
* Add an -f option (for force) to the migrate command. Normally an MBRmarcel2004-11-131-5/+11
| | | | | with unknown partitions is not migrated. By specifying the -f option migration will happen and unknown partitions will be lost.
* Fix a braino: the partition size in the PMBR is in sectors, not bytesmarcel2004-11-121-3/+3
| | | | | | | | and 'mediasz' is in bytes. As it so happens, we define 'last' as the sector number of the last sector on the medium which also is the size of the PMBR partition. Therefore, use 'last' instead of 'mediasz'. Submitted by: Dan Markarian <markarian at apple dot com>
* Remove the -k option to migrate. The option causes gpt(8) to preservemarcel2004-10-311-29/+24
| | | | | | | the MBR after it is migrated to a GPT. While this was useful during the early days when GPT support was under development, it's something that users can use without knowing what they're getting themselves into. The possible harm outweights the marginal usefulness it now has.
* Declare variables as static, like I intended.marcel2004-10-251-1/+1
| | | | Obtained from: Dan Markarian <markarian at apple dot com>
* Catch up with the BSD label changes. The partition offsets are relativemarcel2004-10-251-3/+20
| | | | | to the partition now. While here, make sure we skip unused partition entries.
* Add byte swapping and UUID encoding/decoding to allow gpt to be compiledmarcel2004-10-251-45/+50
| | | | | | on big-endian machines. Obtained from: Dan Markarian <markarian at apple dot com>
* Use __FBSDID.marcel2004-08-071-2/+3
|
* - Provide default values for LABELOFFSET and LABELSECTOR sokensmith2003-11-161-0/+11
| | | | | | it compiles on all architectures. Approved by: marcel
* o Newer EFI implementations require that a GPT is preceeded bymarcel2002-12-021-4/+9
| | | | | | | | | | | | | | | | | | 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)
* Remove inclusion of <sys/uuid.h>. We now include <sys/uuid.h> inmarcel2002-11-101-1/+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-021-0/+1
| | | | | 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-271-3/+3
| | | | | | | | | | | | 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).
* Grab a snapshot of Marcel's gpt tool. This is still a work-in-progresspeter2002-07-201-0/+324
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