freebsd-nq/sys
Poul-Henning Kamp 7812d86f03 (This commit touches about 15 disk device drivers in a very consistent
and predictable way, and I apologize if I have gotten it wrong anywhere,
getting prior review on a patch like this is not feasible, considering
the number of people involved and hardware availability etc.)

If struct disklabel is the messenger: kill the messenger.

Inside struct disk we had a struct disklabel which disk drivers used to
communicate certain metrics to the disklayer above (GEOM or the disk
mini-layer).  This commit changes this communication to use four
explicit fields instead.

Amongst the benefits is that the fields do not get overwritten by
wrong or bogus on-disk disklabels.

Once that is clear, <sys/disk.h> which is included in the drivers
no longer need to pull <sys/disklabel.h> and <sys/diskslice.h> in,
the few places that needs them, have gotten explicit #includes for
them.

The disklabel inside struct disk is now only for internal use in
the disk mini-layer, so instead of embedding it, we malloc it as
we need it.

This concludes (modulus any mistakes) the series of disklabel related
commits.

I belive it all amounts to a NOP for all the rest of you :-)

Sponsored by:   DARPA & NAI Labs.
2002-09-20 19:36:05 +00:00
..
alpha For reasons now lost in historical fog, the bounds_check_with_label() 2002-09-20 17:51:00 +00:00
amd64 Axe unused include. 2002-09-20 19:16:41 +00:00
arm Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
boot MFi386: Remove a.out support. 2002-09-19 13:47:18 +00:00
cam (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
coda Remove all use of vnode->v_tag, replacing with appropriate substitutes. 2002-09-14 09:02:28 +00:00
compat Remove NVIDIA ioctl bits. They will be provided in a kernel module. 2002-09-20 19:19:58 +00:00
conf Ahem, actually add the DDB_TRACE option and finish changing DDB_UNATTENDED 2002-09-19 18:52:37 +00:00
contrib (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
crypto Fix some really pedantic GCC warnings. 2002-07-15 13:45:15 +00:00
ddb Implement db_print_backtrace() if DDB is compiled into the kernel. This 2002-09-19 18:46:29 +00:00
dev (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
fs VOP_FSYNC() requires that it's vnode argument be locked, which nfs_link() 2002-09-19 13:32:45 +00:00
geom (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
gnu VOP_FSYNC() requires that it's vnode argument be locked, which nfs_link() 2002-09-19 13:32:45 +00:00
i4b It's bad enough people can't figure out to use the same code, or in 2002-09-11 12:44:58 +00:00
i386 Axe unused include. 2002-09-20 19:16:41 +00:00
ia64 (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
isa Make FreeBSD "struct disklabel" agnostic, step 311 of 723: 2002-09-20 12:52:03 +00:00
isofs/cd9660 Remove any VOP_PRINT that redundantly prints the tag. 2002-09-18 20:42:04 +00:00
kern (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
libkern Use sys/libkern.h not /usr/include/string.h 2002-09-06 06:04:36 +00:00
modules Add the rest of the kernel support for the sem_ API in kern/uipc_sem.c. 2002-09-19 00:43:32 +00:00
net mistakenly set IFF_UP by SIOCSIFPHYADDR. 2002-09-20 18:21:46 +00:00
netatalk Add more ethernet types and move AppleTalk types into proper location. 2002-09-06 17:02:29 +00:00
netatm Make netatm/spans compile in the kernel without depending on userland 2002-09-17 08:57:52 +00:00
netgraph Reference the socket we're accepting. 2002-09-14 08:56:10 +00:00
netinet Use m_fixhdr() rather than roll our own. 2002-09-18 19:43:01 +00:00
netinet6 Lock the sysctl(8) knobs that turn ip{,6}fw(8) firewalling and 2002-08-25 03:50:29 +00:00
netipx Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
netkey - fixed the order of searching SA table for packets. 2002-07-10 16:39:38 +00:00
netnatm Back out my lats commit of locking down a socket, it conflicts with hsu's work. 2002-05-31 11:52:35 +00:00
netncp Wire the sysctl output buffer before grabbing any locks to prevent 2002-07-28 19:59:31 +00:00
netns Use m_length() instead of home-rolled versions. 2002-09-18 19:44:14 +00:00
netsmb Use m_length() instead of home-rolled versions. 2002-09-18 19:44:14 +00:00
nfs nfsnode.h was moved to ../nfsclient ages ago. I forgot to remove it here. 2002-09-06 05:47:33 +00:00
nfsclient Use m_length() instead of home-rolled versions. 2002-09-18 19:44:14 +00:00
nfsserver Use m_length() instead of home-rolled versions. 2002-09-18 19:44:14 +00:00
pc98 (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
pccard For boot verbose, print resources assigned in a more asthetically pleasing 2002-09-13 16:23:41 +00:00
pci Fix the support for the AN985/983 chips, which do not set the 2002-09-20 15:18:13 +00:00
posix4 Fix various style(9) bugs: 2002-09-20 17:54:34 +00:00
powerpc Implement db_print_backtrace() if DDB is compiled into the kernel. This 2002-09-19 18:46:29 +00:00
rpc
security Remove un-needed stack variable 'ops'. 2002-09-18 22:35:02 +00:00
sparc64 Use correct function name in previous commit. 2002-09-19 19:51:56 +00:00
sys (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
tools - Add two new debugging macros: ASSERT_VI_LOCKED and ASSERT_VI_UNLOCKED 2002-08-21 06:19:29 +00:00
ufs We don't need to #include <sys/disklabel.h>. 2002-09-20 16:42:33 +00:00
vm - Use my freebsd email alias in the copyright. 2002-09-19 06:05:32 +00:00
Makefile Milestone #1 in cross-arch make releases. 2002-04-26 17:55:27 +00:00