Commit Graph

16 Commits

Author SHA1 Message Date
jnemeth e003a26f4c Add a third argument to the "cfn" function that is an argument to
gpt_change_ent().  The purpose of the third argument is to specify
whether the entry to be changed is a primary GPT entry or a secondary
GPT entry.  It is assumed that a secondary GPT entry will always
follow a corresponding primary entry.

This is in preparation for an upcoming change that will require it.
2019-06-21 02:14:59 +00:00
jnemeth aa3b5bb2ee Not all things that write to the disk do something that dk(4) will
be interested in.  Let individual commands decide if ioctl(DIOCMWEDGES)
should be done.  I was conservative and set the flag on any command
that might create/modify/delete partitions in any way.
2018-07-03 03:41:23 +00:00
mlelstv a23ee50408 Check device parameter to avoid segfaults. Agument synopsis for -l option. 2018-03-19 09:06:20 +00:00
christos 4d523900d0 Add listing commands for type, set and unset.
Add help and formatting for set and unset.
Change show to print all the attribute info in one line.
2015-12-06 00:39:26 +00:00
christos da0a3b4c0b eliminate static globals so that commands can be re-used. 2015-12-03 01:07:28 +00:00
christos c94670c3be use the utility function. 2015-12-02 04:06:10 +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
mlelstv 9171ddc6ae Fix handling of -t option for the type command.
Match any type, when no option is given, just like for the label command.
2014-12-07 09:51:42 +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
jnemeth ac204e48a2 PR/47990 - Dr. Wolfgang Stukenbrock -- add "-L <label>" as selector option 2014-09-29 05:56:43 +00:00
jnemeth 88085c2f28 PR/44218 - David Young -- add "type" subcommand to change a partition type 2014-09-28 08:14:51 +00:00