summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-03-22 23:21:49 +0000
committeralfred <alfred@FreeBSD.org>2001-03-22 23:21:49 +0000
commite47209b0dbb141a9bd27e2b40eed1f027f320f68 (patch)
tree2c49bf8a7d9be7e1f0e123164567016012f269d1 /sys
parent8818519fd60392234f69c862e73ee4c81644dd9d (diff)
downloadFreeBSD-src-e47209b0dbb141a9bd27e2b40eed1f027f320f68.zip
FreeBSD-src-e47209b0dbb141a9bd27e2b40eed1f027f320f68.tar.gz
devfs convertion used VINUMRMINOR incorrectly (passing args in
backwards order) Submitted by: Bernd Walter <ticso@mail.cicely.de>
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/vinum/vinumconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/vinum/vinumconfig.c b/sys/dev/vinum/vinumconfig.c
index c37345c..dc15be9 100644
--- a/sys/dev/vinum/vinumconfig.c
+++ b/sys/dev/vinum/vinumconfig.c
@@ -1223,7 +1223,7 @@ config_subdisk(int update)
if (sd->sectors < 0)
throw_rude_remark(EINVAL, "sd %s has no length spec", sd->name);
- sd->dev = make_dev(&vinum_cdevsw, VINUMRMINOR(VINUM_SD_TYPE, sdno),
+ sd->dev = make_dev(&vinum_cdevsw, VINUMRMINOR(sdno, VINUM_SD_TYPE),
UID_ROOT, GID_WHEEL, S_IRUSR|S_IWUSR, "vinum/sd/%s", sd->name);
if (state != sd_unallocated) /* we had a specific state to set */
sd->state = state; /* do it now */
@@ -1382,7 +1382,7 @@ config_plex(int update)
if (plex->organization == plex_disorg)
throw_rude_remark(EINVAL, "No plex organization specified");
- plex->dev = make_dev(&vinum_cdevsw, VINUMRMINOR(VINUM_PLEX_TYPE, plexno),
+ plex->dev = make_dev(&vinum_cdevsw, VINUMRMINOR(plexno, VINUM_PLEX_TYPE),
UID_ROOT, GID_WHEEL, S_IRUSR|S_IWUSR, "vinum/plex/%s", plex->name);
if ((plex->volno < 0) /* we don't have a volume */
@@ -1544,7 +1544,7 @@ config_volume(int update)
vol->size = max(vol->size, PLEX[vol->plex[i]].length);
vinum_conf.volumes_used++; /* one more in use */
- vol->dev = make_dev(&vinum_cdevsw, VINUMRMINOR(VINUM_VOLUME_TYPE, volno),
+ vol->dev = make_dev(&vinum_cdevsw, VINUMRMINOR(volno, VINUM_VOLUME_TYPE),
UID_ROOT, GID_WHEEL, S_IRUSR|S_IWUSR, "vinum/vol/%s", vol->name);
}
OpenPOWER on IntegriCloud