NetBSD/usr.sbin
lukem 1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
..
ac realloc pedant 2003-09-19 06:11:35 +00:00
accton Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
altq Quote question mark. 2003-06-27 22:56:37 +00:00
amd Rework how dependency generation is performed: 2003-08-01 17:03:41 +00:00
apm No longer i386-only. 2003-06-27 22:58:30 +00:00
apmd Make child processes log failure to exec scripts. 2003-06-24 09:41:34 +00:00
arp Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'. 2003-09-07 16:22:20 +00:00
bad144 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
bind Remove sparc64 special case handling - no longer needed. 2003-09-19 16:39:52 +00:00
bootp SIOCGIFCONF -> getifaddrs conversion 2003-08-18 05:39:52 +00:00
catman Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
chown Allow a numeric ID to be preceeded by '#' to avoid the name lookup. 2003-09-25 10:30:10 +00:00
chroot Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
chrtbl Fix two typos, from Igor Sobrado in PR 20722. 2003-03-15 22:30:37 +00:00
cnwctl
config realloc pedant 2003-09-19 06:11:35 +00:00
cron Jobs specified for @reboot are only popped into the job queue at cron 2003-08-13 03:51:15 +00:00
dev_mkdb Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
dhcp Pull in libipsec. 2003-09-25 01:02:03 +00:00
diskpart Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
dumpfs Add a -a option to dump all alternate superblocks 2003-09-26 07:02:43 +00:00
dumplfs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
edquota Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
eeprom Add CPPFLAGS. 2003-05-08 20:24:10 +00:00
envstat Not all size_t's are equal to int... 2003-02-21 07:23:43 +00:00
eshconfig realloc pedant 2003-09-19 06:22:03 +00:00
etcupdate add MTREE=mtree back, for systems with some .mk version skew... 2003-07-14 23:16:19 +00:00
faithd Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'. 2003-09-07 16:22:20 +00:00
grfconfig .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
grfinfo
gspa Rework how dependency generation is performed: 2003-08-01 17:03:41 +00:00
hilinfo
hprop split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se 2003-07-23 08:01:24 +00:00
ifmcstat
ifwatchd Fix typo in last change (misplaced ');') 2003-07-04 14:11:36 +00:00
inetd Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
installboot Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
iopctl The correct capitalisation of 'NetBSD.org' is (you 2003-02-14 16:11:34 +00:00
iostat Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
ipf PR# standards/16143: hide struct uio from userland behind a __UIO_EXPOSE 2003-09-13 16:59:29 +00:00
irdaattach .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
isdn minor KNFs 2003-10-06 09:43:27 +00:00
iteconfig Add <string.h> include for memcpy. 2003-09-27 19:35:14 +00:00
kadmin
kdc libkrb depends on libdes, patch in private mail from 2003-08-23 23:03:42 +00:00
kgmon Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
kstash
ktutil
kvm_mkdb realloc pedant 2003-09-19 06:22:03 +00:00
lastlogin Bump date for last. 2003-08-28 18:55:16 +00:00
link
lpr plug memory leak. oenbsd-pr-3425 2003-09-01 00:21:08 +00:00
mailwrapper Revert previous changes. Add a comment to the source explaining the 2003-03-09 08:10:43 +00:00
makefs realloc pedant 2003-09-19 06:11:35 +00:00
map-mbone fix strncat too. from wiz 2003-05-17 13:56:41 +00:00
mdconfig
mdsetimage Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op), 2003-05-18 07:57:31 +00:00
memswitch use bounded string ops 2003-07-13 12:27:14 +00:00
mld6query - sync up MLD declaration with RFC3542 (s/MLD6/MLD/) 2003-06-06 08:13:43 +00:00
mlxctl use bounded string op 2003-07-13 12:29:20 +00:00
mopd SIOCGIFCONF -> getifaddrs conversion 2003-08-18 05:39:52 +00:00
mountd Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'. 2003-09-07 16:22:20 +00:00
moused snprintf 2003-07-16 06:33:11 +00:00
mrinfo Match latest mouted code 2003-05-16 23:10:15 +00:00
mrouted Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'. 2003-09-07 16:22:20 +00:00
mscdlabel
mtrace ignore non-AF_INET addrs. from openbsd 2003-09-23 10:50:51 +00:00
mtree realloc pedant 2003-09-19 06:11:35 +00:00
ndbootd SIOCGIFCONF->getifaddrs conversion 2003-08-17 22:34:17 +00:00
ndp Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
netgroup_mkdb
nfsd Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'. 2003-09-07 16:22:20 +00:00
ntp avoid mandoc warning 2003-07-04 07:54:47 +00:00
pcictl fix typo. 2003-08-18 16:12:58 +00:00
pkg_install minor style nit 2003-10-06 00:44:15 +00:00
powerd use bounded string op 2003-07-13 12:18:55 +00:00
pppd PR/22776 : Andreas Wrede: proxyarp in pppd is broken 2003-09-13 18:55:17 +00:00
pstat Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
pvcsif
pvctxctl
pwd_mkdb Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
quot Pass a NULL to getbsize() for any arguments that aren't needed, and 2003-05-30 00:17:25 +00:00
quotacheck Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
quotaon Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
racoon update racoon to 2003/8/26 version. mostly minor bugfixes. 2003-08-26 03:31:50 +00:00
rarpd Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
rbootd use strlcpy 2003-08-19 22:22:27 +00:00
rdate Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'. 2003-09-07 16:22:20 +00:00
repquota Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
rip6query %d is not 10 chars, but 12 chars. uwse NI_MAXSERV. sync w/ kame. from openbsd 2003-04-15 07:23:19 +00:00
rmt Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
route6d realloc pedant 2003-09-19 06:01:24 +00:00
rpc.bootparamd Fix Typo. 2003-08-20 13:07:41 +00:00
rpc.lockd Remove references to University of California from my copyright notices. 2003-10-05 17:48:49 +00:00
rpc.pcnfsd Rework how dependency generation is performed: 2003-08-01 17:03:41 +00:00
rpc.statd More e.g. cleanup. Igor Sobrado, PR 19692. 2003-04-07 07:04:49 +00:00
rpc.yppasswdd New sentence, new line; bump date for last; 2003-08-23 23:20:12 +00:00
rpcbind use bounded string op 2003-07-13 12:08:28 +00:00
rtadvd no need for "sdl = NULL" initialization on decl. cedric@openbsd 2003-09-23 18:15:50 +00:00
rtsold unifdef HAVE_ARC4RANDOM 2003-09-06 12:56:43 +00:00
rwhod Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
sa realloc pedant 2003-09-19 06:22:03 +00:00
screenblank .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
sendmail
sesd fix english 2003-01-06 14:43:01 +00:00
sliplogin Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
slstats
spray Remove superfluous .Ek. 2003-06-26 10:10:11 +00:00
sunlabel use bounded string op 2003-07-13 12:08:28 +00:00
sup Change `LNFILES' to `BUILDSYMLINKS', to more accurately describe its purpose. 2003-09-20 06:20:41 +00:00
sushi use bounded string op 2003-07-16 06:40:47 +00:00
syslogd no need for explicit '?'; openbsd 2003-09-19 08:24:07 +00:00
tadpolectl use bounded string op 2003-07-13 12:08:28 +00:00
tcpdchk use bounded string op 2003-07-14 09:07:22 +00:00
tcpdmatch
tcpdump enable SMB support 2003-03-28 11:06:32 +00:00
timed SIOCGIFCONF -> getifaddrs conversion 2003-08-18 05:39:52 +00:00
tpctl #include <string.h> for memset and memcpy. 2003-07-08 23:33:50 +00:00
traceroute strncpy -> strlcpy 2003-05-17 18:13:55 +00:00
traceroute6 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
trpt no need for explicit '?'; openbsd 2003-09-19 08:24:07 +00:00
trsp Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
unlink
usbdevs use bounded string op 2003-07-13 12:08:28 +00:00
user Clarify that the user's full name (not username) goes into the GECOS field. 2003-09-04 08:37:59 +00:00
videomode use bounded string op 2003-07-13 12:08:28 +00:00
vipw Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
vnconfig Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
wiconfig strcpy audit (command line argument was used as src, subject to overrun) 2003-05-15 00:02:25 +00:00
wsconscfg .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
wsfontload Bump date for last. 2003-05-06 08:43:45 +00:00
wsmoused Add and use the log_err, log_errx, log_warn and log_warnx functions that act as 2003-08-06 23:58:40 +00:00
wsmuxctl use bounded string op 2003-07-13 12:08:28 +00:00
ypbind width needs to be updated before each loop, because svc_maxfd may have 2003-09-05 14:59:37 +00:00
yppoll
ypserv Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:25:11 +00:00
ypset
zdump
zic Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op), 2003-05-18 07:57:31 +00:00
Makefile Don't build kvm_mkdb anymore. 2003-05-11 18:19:09 +00:00
Makefile.inc