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 /sbin/vinum/v.c | |
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 'sbin/vinum/v.c')
-rw-r--r-- | sbin/vinum/v.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/vinum/v.c b/sbin/vinum/v.c index f95223c..ecf6600 100644 --- a/sbin/vinum/v.c +++ b/sbin/vinum/v.c @@ -36,7 +36,7 @@ * */ -/* $Id: v.c,v 1.25 1999/03/21 01:18:23 grog Exp grog $ */ +/* $Id: v.c,v 1.16 1999/07/02 07:59:45 grog Exp $ */ #include <ctype.h> #include <errno.h> @@ -483,19 +483,19 @@ make_devices(void) if (mknod(VINUM_SUPERDEV_NAME, S_IRWXU | S_IFBLK, /* block device, user only */ - VINUM_SUPERDEV) < 0) + makedev(BDEV_MAJOR, VINUM_SUPERDEV)) < 0) fprintf(stderr, "Can't create %s: %s\n", VINUM_SUPERDEV_NAME, strerror(errno)); if (mknod(VINUM_WRONGSUPERDEV_NAME, S_IRWXU | S_IFBLK, /* block device, user only */ - VINUM_WRONGSUPERDEV) < 0) + makedev(BDEV_MAJOR, VINUM_WRONGSUPERDEV)) < 0) fprintf(stderr, "Can't create %s: %s\n", VINUM_WRONGSUPERDEV_NAME, strerror(errno)); superdev = open(VINUM_SUPERDEV_NAME, O_RDWR); /* open the super device */ if (mknod(VINUM_DAEMON_DEV_NAME, /* daemon super device */ S_IRWXU | S_IFBLK, /* block device, user only */ - VINUM_DAEMON_DEV) < 0) + makedev(BDEV_MAJOR, VINUM_DAEMON_DEV)) < 0) fprintf(stderr, "Can't create %s: %s\n", VINUM_DAEMON_DEV_NAME, strerror(errno)); if (ioctl(superdev, VINUM_GETCONFIG, &vinum_conf) < 0) { |