1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00
freebsd/sbin
Marcel Moolenaar 3bd22a9cc8 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
..
adjkerntz
atm
badsect
bsdlabel
camcontrol sbin/camcontrol/camcontrol.c 2013-05-15 17:26:50 +00:00
ccdconfig Cross-reference gvinum(8) instead of vinum(8). 2013-03-16 22:02:47 +00:00
clri
comcontrol A number of places in the source tree still reference cuad.* after 2012-12-08 22:16:36 +00:00
conscontrol
ddb
devd Improve compatibility with recent flex from flex.sourceforge.net. 2013-05-03 23:51:32 +00:00
devfs Move EXAMPLES descriptions to before the actual command. 2013-04-21 10:08:33 +00:00
dhclient Use a higher TTL (128) for DHCP packets. This matches the ISC DHCP client. 2013-04-22 15:02:32 +00:00
dmesg Bump .Dd for recent content change. 2013-05-10 12:49:16 +00:00
dump
dumpfs When running the -m option to generate a newfs(8) command suitable for 2013-05-16 20:07:08 +00:00
dumpon Adapt to the fact that minidumps are now on by default. 2013-04-30 07:22:03 +00:00
etherswitchcfg mdoc: new sentence, new line. 2013-05-08 21:02:48 +00:00
fdisk
fdisk_pc98
ffsinfo Cross-reference gvinum(8) instead of vinum(8). 2013-03-16 22:02:47 +00:00
fsck
fsck_ffs Style nit. 2013-04-29 20:14:11 +00:00
fsck_msdosfs
fsdb Revert 248634 and 248643 (e.g., restoring 248625 and 248639). 2013-03-23 20:00:02 +00:00
fsirand
gbde Add the Clang specific -Wmissing-variable-declarations to WARNS=6. 2013-04-19 19:45:00 +00:00
geom Change the set and unset ctlreqs by making the index argument optional. 2013-06-09 23:34:26 +00:00
ggate
growfs Allow the use of lowercase 'yes' 2013-05-08 18:55:38 +00:00
gvinum Remove reference to vinum(4). The manual page was removed in r248370. 2013-03-16 21:50:06 +00:00
hastctl Get rid of libl dependency. We needed it only to provide yywrap. But 2013-05-11 09:51:44 +00:00
hastd Improve compatibility with old flex and fix build with GCC. 2013-05-22 17:47:45 +00:00
ifconfig mdoc sweep 2013-05-13 18:13:50 +00:00
init
ipf
ipfw Fix ipfw(8) sets of ipv6 addresses handling. 2013-05-18 04:49:00 +00:00
iscontrol mdoc sweep. 2013-05-12 22:22:12 +00:00
kldconfig
kldload Remove contractions. 2013-04-11 18:46:41 +00:00
kldstat
kldunload
ldconfig Add a comment about why aout support is still here: We need it for 2013-03-19 16:57:04 +00:00
mca
md5 Add the Clang specific -Wmissing-variable-declarations to WARNS=6. 2013-04-19 19:45:00 +00:00
mdconfig
mdmfs
mknod
mksnap_ffs
mount Revert r238399. 2013-06-07 07:17:46 +00:00
mount_cd9660 Update the manual page to reflect reality. With r138509 and r152355, 2013-03-05 23:05:43 +00:00
mount_fusefs
mount_msdosfs GC unused variables. Prefer NULL over 0 for pointers. 2013-03-05 22:41:35 +00:00
mount_nfs GC unused variables. Prefer NULL over 0 for pointers. 2013-03-05 22:41:35 +00:00
mount_nullfs GC unused variables. Prefer NULL over 0 for pointers. 2013-03-05 22:41:35 +00:00
mount_udf Use build_iovec() to make it less cryptic. This also fixes warnings. 2013-03-06 00:36:33 +00:00
mount_unionfs GC unused variables. Prefer NULL over 0 for pointers. 2013-03-05 22:41:35 +00:00
nandfs
natd
newfs Remove contractions. 2013-04-11 18:46:41 +00:00
newfs_msdos newfs_msdos: cosmetical cleanups 2013-01-19 03:34:02 +00:00
newfs_nandfs Unbreak the build of newfs_nandfs. 2013-04-21 22:36:14 +00:00
nfsiod
nos-tun
nvmecontrol Remove the NVME_IDENTIFY_CONTROLLER and NVME_IDENTIFY_NAMESPACE IOCTLs and replace 2013-04-12 17:56:47 +00:00
pfctl
pflogd pflogd does not depend on libutil 2013-01-01 18:28:21 +00:00
ping
ping6 Remove EOL whitespace. 2013-05-08 21:04:19 +00:00
quotacheck
rcorder
reboot Clarify that overriding the -h/-D flags through flags in device.hints 2013-02-26 23:18:35 +00:00
recoverdisk Correct type for DIOCGSTRIPESIZE. Without this there 2013-03-14 20:05:49 +00:00
resolvconf
restore
route Fix a bug that the gateway address was not shown when a -gateway modifier 2013-06-09 17:40:06 +00:00
routed mdoc sweep 2013-05-13 18:13:50 +00:00
rtsol
savecore With rotating kernel dumps the higest dump number is not necessarily the 2012-12-16 23:09:27 +00:00
sconfig
setkey Correct prefix for "locally installed things" 2013-01-16 05:03:46 +00:00
shutdown Add simple example. 2013-03-19 21:40:14 +00:00
spppcontrol
sunlabel
swapon
sysctl Use the right format string for line buffer. 2013-01-13 04:28:44 +00:00
tunefs Constify string pointers. 2013-05-16 21:04:56 +00:00
umount
Makefile Remove all legacy ATA code parts, not used since options ATA_CAM enabled in 2013-04-04 07:12:24 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.ia64
Makefile.inc
Makefile.mips
Makefile.pc98
Makefile.sparc64