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
..
2002-09-11 04:22:10 +00:00
2002-04-04 23:39:10 +00:00
2002-02-11 03:54:30 +00:00
2002-09-10 11:57:02 +00:00
2002-07-20 02:56:12 +00:00
2002-07-20 02:56:12 +00:00
2002-09-08 02:17:44 +00:00
2002-07-20 02:56:12 +00:00
2002-07-20 02:56:12 +00:00
2001-11-28 03:26:58 +00:00
2002-03-25 13:52:45 +00:00
2002-09-15 23:52:25 +00:00
2002-09-19 00:48:57 +00:00
2002-09-18 01:56:13 +00:00
2002-08-01 01:04:16 +00:00
2002-09-04 10:15:19 +00:00
2002-09-11 08:13:56 +00:00
2002-09-08 15:15:12 +00:00
2002-09-16 01:05:15 +00:00
2002-05-01 02:51:50 +00:00
2002-08-17 02:36:16 +00:00
2002-09-14 18:55:11 +00:00
2002-09-16 19:26:48 +00:00
2002-09-16 19:26:48 +00:00
2002-09-11 08:13:56 +00:00
2002-09-11 08:13:56 +00:00
2002-07-01 20:46:01 +00:00
2002-09-17 07:41:30 +00:00
2002-09-11 08:13:56 +00:00
2002-04-06 08:44:04 +00:00
2002-09-11 21:00:56 +00:00
2002-08-15 20:55:08 +00:00
2002-08-27 09:59:47 +00:00
2002-09-14 14:44:41 +00:00
2002-09-18 22:35:02 +00:00
2002-09-18 08:26:30 +00:00
2002-04-02 17:43:17 +00:00
2002-06-26 00:31:44 +00:00
2002-04-04 21:03:38 +00:00
2002-09-11 08:13:56 +00:00
2002-04-26 21:31:44 +00:00
2002-06-29 01:50:25 +00:00
2002-08-18 07:05:00 +00:00
2002-09-16 19:26:48 +00:00
2002-08-01 17:47:56 +00:00
2002-09-15 23:52:25 +00:00
2002-04-04 21:03:38 +00:00
2002-09-19 18:49:46 +00:00
2002-09-16 19:26:48 +00:00
2002-08-04 06:27:37 +00:00
2002-09-15 23:52:25 +00:00
2002-04-04 20:49:35 +00:00
2002-09-11 08:13:56 +00:00
2002-03-18 07:45:30 +00:00
2002-08-10 19:56:45 +00:00
2002-09-04 19:32:18 +00:00
2002-09-17 07:41:30 +00:00
2002-08-18 21:24:22 +00:00
2002-09-05 11:42:03 +00:00
2002-08-22 12:47:22 +00:00
2002-06-29 02:00:02 +00:00
2002-09-11 08:13:56 +00:00
2002-09-17 01:49:00 +00:00
2002-09-17 01:49:00 +00:00
2001-10-30 15:21:45 +00:00
2002-02-27 10:07:15 +00:00
2001-10-13 09:17:49 +00:00
2002-09-19 00:43:32 +00:00
2002-06-24 14:15:25 +00:00
2002-05-19 00:14:50 +00:00
2002-09-19 00:43:32 +00:00
2002-08-01 01:04:16 +00:00
2002-03-19 21:25:46 +00:00
2002-05-18 23:46:04 +00:00
2002-09-14 19:15:12 +00:00
2002-03-19 21:25:46 +00:00
2002-08-07 19:43:54 +00:00
2002-02-22 09:26:35 +00:00
2002-09-20 19:36:05 +00:00
2002-09-20 19:36:05 +00:00
2002-09-20 12:52:03 +00:00
2002-09-20 09:33:30 +00:00
2002-07-19 17:44:44 +00:00
2002-05-01 02:51:50 +00:00
2002-06-10 22:40:26 +00:00
2002-06-29 02:00:02 +00:00
2002-08-15 14:09:16 +00:00
2002-09-18 13:41:37 +00:00
2002-08-30 04:04:37 +00:00
2002-01-05 09:35:50 +00:00
2002-07-15 17:17:56 +00:00
2002-08-11 18:47:42 +00:00
2002-06-29 02:00:02 +00:00
2002-09-05 11:45:02 +00:00
2002-08-07 19:43:54 +00:00
2002-09-16 18:45:18 +00:00
2002-09-11 08:13:56 +00:00
2002-08-01 13:35:38 +00:00
2002-08-22 14:36:03 +00:00
2002-09-11 08:13:56 +00:00
2002-09-08 04:45:16 +00:00
2002-03-31 22:37:00 +00:00
2002-09-20 17:45:44 +00:00
2002-08-21 23:39:52 +00:00
2002-09-11 08:13:56 +00:00
2002-08-17 02:36:16 +00:00
2002-09-19 00:48:57 +00:00
2002-09-19 00:43:32 +00:00
2002-04-01 21:31:13 +00:00
2002-08-13 08:00:36 +00:00
2002-08-13 08:47:17 +00:00
2002-08-15 02:10:12 +00:00
2002-03-24 05:09:11 +00:00
2001-09-12 08:38:13 +00:00
2002-08-06 18:56:41 +00:00
2002-04-16 17:09:22 +00:00
2002-03-19 21:25:46 +00:00
2002-08-19 19:04:53 +00:00
2002-09-11 08:13:56 +00:00
2002-09-02 04:04:12 +00:00
2002-05-31 11:52:35 +00:00
2002-07-21 19:06:46 +00:00
2002-05-23 15:59:48 +00:00
2002-09-19 08:28:41 +00:00
2002-09-18 22:47:42 +00:00
2002-09-18 19:44:14 +00:00
2002-09-18 19:44:14 +00:00
2002-08-16 12:52:03 +00:00
2002-08-28 20:56:01 +00:00
2002-08-01 01:18:42 +00:00
2002-08-01 01:04:16 +00:00
2002-08-22 21:24:01 +00:00
2002-09-15 17:52:35 +00:00
2002-09-02 22:40:30 +00:00
2002-08-25 13:23:09 +00:00
2002-08-13 11:11:51 +00:00
2002-06-30 05:23:58 +00:00
2002-09-19 13:32:45 +00:00
2002-06-22 21:44:11 +00:00
2002-08-04 10:29:36 +00:00
2002-09-19 18:54:22 +00:00
2002-09-18 20:42:04 +00:00
2002-09-19 13:32:45 +00:00
2002-08-25 13:23:09 +00:00
2002-09-19 13:32:45 +00:00