14243f8de7
The values of the d_slice and d_partition fields of a disk_devdesc have a few values with special meanings in the disk_open() routine. Through various evolutions of the loader code over time, a d_partition value of -1 has meant both "use the first ufs partition found in the bsd label" and "don't open a bsd partition at all, open the raw slice." This defines a new special value of -2 to mean open the raw slice, and it gives symbolic names to all the special values used in d_slice and d_partition, and adjusts all existing uses of those fields to use the new constants. The phab review for this timed out without being accepted, but I'm still citing it below because there is useful commentary there. Differential Revision: https://reviews.freebsd.org/D19262 |
||
---|---|---|
.. | ||
amd64_tramp.S | ||
bio.c | ||
biosacpi.c | ||
biosdisk.c | ||
biosmem.c | ||
biospci.c | ||
biospnp.c | ||
biossmap.c | ||
bootinfo32.c | ||
bootinfo64.c | ||
bootinfo.c | ||
comconsole.c | ||
devicename.c | ||
elf32_freebsd.c | ||
elf64_freebsd.c | ||
i386_copy.c | ||
i386_module.c | ||
libi386.h | ||
Makefile | ||
Makefile.depend | ||
multiboot_tramp.S | ||
multiboot.c | ||
multiboot.h | ||
nullconsole.c | ||
pread.c | ||
pxe.c | ||
pxe.h | ||
pxetramp.S | ||
relocater_tramp.S | ||
smbios.c | ||
smbios.h | ||
spinconsole.c | ||
time.c | ||
vidconsole.c |