NetBSD/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
..
atactl Add NetBSD RCS Ids. 2003-06-23 11:53:35 +00:00
badsect Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:11 +00:00
bim
brconfig realloc pedant 2003-09-19 08:35:15 +00:00
ccdconfig realloc pedant 2003-09-19 08:35:15 +00:00
cgdconfig back out revision 1.3. this should not have been committed yet, 2003-09-25 01:43:12 +00:00
chkconfig
clri Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:11 +00:00
disklabel Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
dkctl also reference disklabel(5) 2003-07-13 09:53:10 +00:00
dmesg Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:11 +00:00
dump Use HW_USERMEM64 to fetch the amount of memory available. 2003-09-13 10:59:50 +00:00
dump_lfs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:11 +00:00
edlabel use snprintf 2003-05-17 23:10:57 +00:00
fastboot Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:11 +00:00
fdisk Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
fsck Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:11 +00:00
fsck_ext2fs More licence fixes, pointed out by Thomas Klausner. 2003-10-05 20:54:45 +00:00
fsck_ffs realloc pedant 2003-09-19 08:35:15 +00:00
fsck_lfs fix NULL pointer pointer dereference in fileerror() when ino is NULL 2003-10-05 17:11:23 +00:00
fsck_msdos Only compare the interesting part of the bootblock with its backup. 2003-07-24 19:25:46 +00:00
fsdb use bounded string op 2003-07-13 08:16:15 +00:00
fsirand use arc4random 2003-09-06 12:42:00 +00:00
ifconfig Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
init If /dev/constty exists, use it instead of /dev/console for single user shell. 2003-10-03 13:31:32 +00:00
ldconfig Add NetBSD RCS Ids. 2003-06-23 11:53:35 +00:00
lmcctl Add NetBSD RCS Ids. 2003-06-23 11:53:35 +00:00
mbrlabel Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
mknod Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
modload New sentence, new line; improve grammar. 2003-09-06 20:09:26 +00:00
modunload New sentence, new line; drop trailing whitespace. 2003-09-06 20:12:41 +00:00
mount realloc pedant 2003-09-19 08:29:58 +00:00
mount_ados print masks and modes in octal. 2003-05-03 15:37:07 +00:00
mount_cd9660 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_ext2fs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_fdesc Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_ffs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_filecore Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_kernfs add /kern/ipsecsa and /kern/ipsecsp, which can be inspected by setkey(8). 2003-09-08 06:51:53 +00:00
mount_lfs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_msdos Sync usage with man page. 2003-09-08 07:21:59 +00:00
mount_nfs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_ntfs g/c all traces of FreeBSD-specific code - it only obfuscated the code without 2003-08-02 10:11:47 +00:00
mount_null Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_overlay Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_portal Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_procfs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_smbfs install the example dot.nsmbrc 2003-04-04 07:50:43 +00:00
mount_umap Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_union Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
newbtconf Quote macro candidate. 2003-06-27 23:23:51 +00:00
newfs Need to write entire sector. 2003-09-17 21:09:18 +00:00
newfs_lfs use arc4random 2003-09-06 12:42:00 +00:00
newfs_msdos add some more detail to an error message 2003-10-08 03:56:21 +00:00
nologin Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
pdisk
ping Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
ping6 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'. 2003-09-07 16:22:20 +00:00
pppoectl Bump date for previous. 2003-10-02 07:07:48 +00:00
raidctl use bouded string ops 2003-07-13 07:37:02 +00:00
rcorder Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
reboot Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
resize_ffs netbsd.org->NetBSD.org 2003-07-26 19:38:45 +00:00
restore Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
rndctl strlcat 2003-07-13 07:59:24 +00:00
route correct typo. PR misc/22944 2003-10-02 00:09:06 +00:00
routed Correct error in previous, noted by Nick Hudson. 2003-09-23 12:14:49 +00:00
rtsol unifdef HAVE_ARC4RANDOM 2003-09-06 12:56:43 +00:00
savecore Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
scsictl Make this compile after the recent changes to the kernel. 2003-09-08 09:05:08 +00:00
setkey support DUMP by sysctl 2003-09-12 07:45:21 +00:00
shutdown Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
slattach Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
swapctl Add NetBSD RCS Ids. 2003-06-23 11:53:35 +00:00
sysctl Forgot the date.... 2003-09-27 19:07:12 +00:00
ttyflags use strlcat/strlcpy 2003-07-12 14:33:55 +00:00
tunefs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
umount Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
veriexecctl don't compile this -static, depend on MKDYNAMICROOT check in ../Makefile.inc 2003-04-26 12:46:35 +00:00
wdogctl use bounded string op 2003-07-13 08:05:58 +00:00
wsconsctl Rework how dependency generation is performed: 2003-08-01 17:03:41 +00:00
Makefile
Makefile.inc