]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r251587 (by marcel):
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 29 Aug 2013 09:33:10 +0000 (09:33 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 29 Aug 2013 09:33:10 +0000 (09:33 +0000)
commit5b35fe6a0422bb68858ec0cd01ff319f6a061db5
tree22cfffa9f37334706dc8731c4664b22ee314c468
parent38bb7a2a90f48c80e47434ee114a1a2dc8ce41f9
MFC r251587 (by marcel):
  Remove stub implementation.

MFC r251588 (by marcel):
  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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@255017 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/geom/class/part/geom_part.c
sys/geom/part/g_part.c
sys/geom/part/g_part_ebr.c
sys/geom/part/g_part_gpt.c
sys/geom/part/g_part_ldm.c
sys/geom/part/g_part_mbr.c
sys/geom/part/g_part_pc98.c