freebsd-nq/sys/geom
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
..
geom_aes.c Add two new submodes to the AES encryption method. 2002-06-28 21:25:15 +00:00
geom_bsd.c "Fix" printf format issues by using %j 2002-09-13 11:41:25 +00:00
geom_ccd.c (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
geom_dev.c Retire now unused DIOCGDVIRGIN kludge. 2002-09-20 09:31:14 +00:00
geom_disk.c (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
geom_dump.c Remove "magicspace". It looks good on paper, it doesn't work in practice. 2002-09-06 08:50:28 +00:00
geom_enc.c Add a couple more of the big/little-endian conversion routines and make 2002-09-13 10:33:10 +00:00
geom_event.c Improve some on the naming. 2002-06-09 10:57:34 +00:00
geom_gpt.c Remove unneeded #include <sys/disklabel.h> 2002-09-20 17:00:24 +00:00
geom_int.h s/classs/classes/ to fixup grammer after the previous global renaming. 2002-04-04 09:41:47 +00:00
geom_io.c Use biowait() rather than DIY. 2002-09-13 11:39:11 +00:00
geom_kern.c Don't use the static thread.. it is going away. 2002-06-29 07:47:20 +00:00
geom_mbr.c Deal with a new exteded MBR paritition type 2002-09-08 15:13:33 +00:00
geom_pc98.c "Fix" printf format issues by using %j 2002-09-13 11:41:25 +00:00
geom_slice.c Improve some on the naming. 2002-06-09 10:57:34 +00:00
geom_slice.h All in a days work: make a function static. 2002-04-23 19:03:03 +00:00
geom_subr.c Remove "magicspace". It looks good on paper, it doesn't work in practice. 2002-09-06 08:50:28 +00:00
geom_sunlabel.c Remove "magicspace". It looks good on paper, it doesn't work in practice. 2002-09-06 08:50:28 +00:00
geom.h Add a couple more of the big/little-endian conversion routines and make 2002-09-13 10:33:10 +00:00