diff options
author | grog <grog@FreeBSD.org> | 1999-07-22 08:40:37 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-07-22 08:40:37 +0000 |
commit | 83880cb90483b6146cb79be6d0ff689512baa4e6 (patch) | |
tree | 5039e963053bb1b3a87073076933dd4529dbd651 /sys/dev/vinum/vinumvar.h | |
parent | 9cda945475738ff06fb37e22dc4b701bf47c33d4 (diff) | |
download | FreeBSD-src-83880cb90483b6146cb79be6d0ff689512baa4e6.zip FreeBSD-src-83880cb90483b6146cb79be6d0ff689512baa4e6.tar.gz |
Modify device numbering method to work with latest -CURRENT. Briefly,
the device numbers are now minor number only, so that we can still
compare them after dev_t has turned into a blob.
Broken-by: dev_t changes
Reported-by: Vallo Kallaste <vallo@matti.ee>
"Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk>
Diffstat (limited to 'sys/dev/vinum/vinumvar.h')
-rw-r--r-- | sys/dev/vinum/vinumvar.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/vinum/vinumvar.h b/sys/dev/vinum/vinumvar.h index d914dd8..5af8a98 100644 --- a/sys/dev/vinum/vinumvar.h +++ b/sys/dev/vinum/vinumvar.h @@ -33,7 +33,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumvar.h,v 1.19 1999/03/23 02:48:20 grog Exp grog $ + * $Id: vinumvar.h,v 1.20 1999/07/02 07:56:47 grog Exp $ */ #include <sys/time.h> @@ -127,14 +127,14 @@ enum constants { */ #ifdef VINUMDEBUG -#define VINUM_SUPERDEV VINUMBDEV (1, 0, 0, VINUM_SUPERDEV_TYPE) /* superdevice number */ -#define VINUM_WRONGSUPERDEV VINUMBDEV (2, 0, 0, VINUM_SUPERDEV_TYPE) /* non-debug superdevice number */ +#define VINUM_SUPERDEV VINUMMINOR (1, 0, 0, VINUM_SUPERDEV_TYPE) /* superdevice number */ +#define VINUM_WRONGSUPERDEV VINUMMINOR (2, 0, 0, VINUM_SUPERDEV_TYPE) /* non-debug superdevice number */ #else -#define VINUM_SUPERDEV VINUMBDEV (2, 0, 0, VINUM_SUPERDEV_TYPE) /* superdevice number */ -#define VINUM_WRONGSUPERDEV VINUMBDEV (1, 0, 0, VINUM_SUPERDEV_TYPE) /* debug superdevice number */ +#define VINUM_SUPERDEV VINUMMINOR (2, 0, 0, VINUM_SUPERDEV_TYPE) /* superdevice number */ +#define VINUM_WRONGSUPERDEV VINUMMINOR (1, 0, 0, VINUM_SUPERDEV_TYPE) /* debug superdevice number */ #endif -#define VINUM_DAEMON_DEV VINUMBDEV (0, 0, 0, VINUM_SUPERDEV_TYPE) /* daemon superdevice number */ +#define VINUM_DAEMON_DEV VINUMMINOR (0, 0, 0, VINUM_SUPERDEV_TYPE) /* daemon superdevice number */ /* * the number of object entries to cater for initially, and also the |