Commit Graph

23 Commits

Author SHA1 Message Date
christos e1a93a1b84 PR/51497: Clare: Allow gpt -p <n> create to work. 2016-09-23 19:36:50 +00:00
christos b7b34325a9 Rename 'a' to set the active PMBR flag to 'A' 2016-06-09 19:04:43 +00:00
christos 3017a7a39f PR/51230: Add the ability to set the active flag in the PMBR. 2016-06-09 15:12:54 +00:00
christos f9db75489b - add more informational messages
- handle case where last argument is an option not a device (set -l)
2015-12-29 16:45:04 +00:00
christos 0f11011500 CID 1341556: Don't leak map info 2015-12-03 21:30:54 +00:00
christos 5c1ccc6e9b WARNS=6 2015-12-03 02:02:43 +00:00
christos da0a3b4c0b eliminate static globals so that commands can be re-used. 2015-12-03 01:07:28 +00:00
christos bbb4a8ab26 refactor more duplicated code. 2015-12-01 19:25:24 +00:00
christos 8ca93e4658 Refactor the command dispatching and help printing logic. 2015-12-01 16:32:19 +00:00
christos 0b43d398b9 Firs step of refactoring, remove all globals, factor out some common code,
handle alternate usage but not advertise it.
2015-12-01 09:05:33 +00:00
christos ca4e0dcdd1 merge the create errors in one place and fix them. 2015-11-29 00:14:46 +00:00
christos 194a5fe433 provide a copy of the kernel uuid generator (with portable API calls) for
tools.
2014-10-03 20:30:06 +00:00
jnemeth 00433a3409 "0" is not guaranteed to be unique 2014-10-03 00:51:31 +00:00
christos 21c34dbb1d Add internal uuid support, since the linux+macos versions of the library
are different than than *bsd ones, and others might not have it at all.
2014-09-30 17:59:59 +00:00
christos c917041fda remove compat defines. 2014-09-30 02:12:55 +00:00
christos a50708a134 minor toolification: need libprop... 2014-09-29 20:28:57 +00:00
jakllsch 16550bc8bd Use MBR_PTYPE_ defines from <sys/bootblock.h>. 2013-12-04 20:15:51 +00:00
jakllsch 287267eb57 Clean up gpt(8) a bit more
uuid_create_nil(3) and uuid_is_nil(3) take a uuid_t*, not a pointer to
an array of bytes merely casted to compatible type.

Additonally, there no need for extra casts and address-of operations when
using le_uuid_*() functions.

Furthermore, le_uuid_*() are identical to uuid_*_le functions in
libc/libuuid, so use those instead on NetBSD.
2013-04-13 18:04:33 +00:00
joerg a4b65553ae Use __dead 2011-08-27 17:38:16 +00:00
jakllsch 1f8f195455 Use less bogus CHS addresses in PMBR.
With the ending head set at 0xff one machine I have will never leave
the initial startup screen if such a disk is present.  Additionally,
Wikipedia suggests without citiation that 254 is the maximium allowable
value for the head, and this seems to be the case.
2011-01-06 17:42:10 +00:00
riz 0fac2edb7f Fix the usage strings for each command, and print them all for the
"global" usage.  It's still a little ugly, but hopefully not as
fantastically confusing as before...
2007-12-18 21:46:45 +00:00
christos 9b52236568 Make this work under NetBSD. 2006-10-15 22:36:29 +00:00
christos 5819a8c09d Import the gpt tool from FreeBSD 2006-10-15 22:34:15 +00:00