freebsd-skq/sbin/geom/class
marcel 0c3f6d383d Change the set and unset ctlreqs by making the index argument optional.
This allows setting attributes on tables. One simply does not provide
an index in that case. Otherwise the entry corresponding the index has
the attribute set or unset.

Use this change to fix a relatively longstanding bug in our GPT scheme
that's the result of rev 198097 (relatively harmless) followed by rev
237057 (damaging). The damaging part being that our GPT scheme always
has the active flag set on the PMBR slice. This is in violation with
EFI. Existing EFI implementions for both x86 and ia64 reject the GPT.
As such, GPT disks created by us aren't usable under EFI because of
that.

After this change, GPT disks never have the active flag set on the PMBR
slice. In order to make the GPT disk bootable under some x86 BIOSes,
the reason of rev 198097, one must now set the active attribute on the
gpt table. The kernel will apply this to the PMBR slice For (S)ATA:
	gpart set -a active ada0

To fix an existing GPT disk that has the active flag set in the PMBR,
and that does not need the flag, use (again for (S)ATA):
	gpart unset -a active ada0

The EBR, MBR & PC98 schemes, which also impement at least 1 attribute,
now check to make sure the entry passed is valid. They do not have
attributes that apply to the table.
2013-06-09 23:34:26 +00:00
..
cache Rename the generic "CLASS" to the more specific "GEOM_CLASS". 2010-12-15 23:24:34 +00:00
concat Cross-reference gvinum(8) instead of vinum(8). 2013-03-16 22:02:47 +00:00
eli o Typo: IEE -> IEEE. 2013-03-25 12:38:45 +00:00
journal Use tabs for indentation. 2013-01-05 21:52:38 +00:00
label Minor clarificiation. 2013-04-22 17:38:26 +00:00
mirror Cross-reference gvinum(8) instead of vinum(8). 2013-03-16 22:02:47 +00:00
mountver Rename the generic "CLASS" to the more specific "GEOM_CLASS". 2010-12-15 23:24:34 +00:00
multipath New command "gmultipath prefer" to force selection of a specified 2012-08-03 14:55:35 +00:00
nop update information about debugging sysctl... 2013-04-14 16:20:25 +00:00
part Change the set and unset ctlreqs by making the index argument optional. 2013-06-09 23:34:26 +00:00
raid Minor rewording. 2013-04-04 10:26:09 +00:00
raid3 Allow to insert new component to geom_raid3 without specifying number. 2013-01-15 10:06:35 +00:00
sched Remove trailing whitespace. 2012-07-30 10:14:37 +00:00
shsec Rename the generic "CLASS" to the more specific "GEOM_CLASS". 2010-12-15 23:24:34 +00:00
stripe Remove references to ataraid(4) and atacontrol(8). 2013-04-04 08:45:37 +00:00
virstor Document "destroy" as an alias for "stop". 2012-08-03 20:30:40 +00:00
Makefile MFgraid/head: 2011-03-24 21:31:32 +00:00
Makefile.inc Add the Clang specific -Wmissing-variable-declarations to WARNS=6. 2013-04-19 19:45:00 +00:00