summaryrefslogtreecommitdiffstats
path: root/sbin/gpt/add.c
Commit message (Collapse)AuthorAgeFilesLines
* Dot the i's: multiple devices can be specified, so the usage shouldmarcel2005-09-011-1/+1
| | | | have ellipsis following the device.
* /* -> /*- for license.marcel2005-08-311-1/+1
|
* - distinguish between the device name (what the user called it on thedes2005-04-241-0/+2
| | | | | | | | | | | | command line) and the device path (what we passed to open()). Use the former in diagnostics. - when adding or removing partitions, print a single line to stdout for each partition that was added or removed, indicating its name. - add an -a option to 'gpt remove' which must be explicitly specified to remove all partitions. Approved by: marcel (in prinicple) MFC after: 2 weeks
* Remove useless inclusion of <sys/disklabel.h>marcel2004-10-251-1/+0
| | | | Obtained from: Dan Markarian <markarian at apple dot com>
* Add byte swapping and UUID encoding/decoding to allow gpt to be compiledmarcel2004-10-251-21/+20
| | | | | | on big-endian machines. Obtained from: Dan Markarian <markarian at apple dot com>
* Use __FBSDID.marcel2004-08-071-2/+3
|
* o Save the partition number (=index) in the internal map. The indexmarcel2004-08-071-22/+49
| | | | | | | | | | 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.
* Added the ability to create and display Linux/Windows GPT partitions to gpt(8).arun2004-07-011-0/+4
|
* - Add GPT header/table recovery commandkensmith2003-11-161-2/+3
| | | | | | - Minor related cleanup in add command Approved by: marcel
* 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-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-0/+192
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).
OpenPOWER on IntegriCloud