1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

vinumopen: add code for opening raw plexes. Volume-related plex

devices will probably die a death soon (yes, DES, that's correct
usage).
This commit is contained in:
Greg Lehey 1999-08-14 06:22:15 +00:00
parent 98256dfef8
commit 466c1060d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49716

View File

@ -299,6 +299,9 @@ vinumopen(dev_t dev,
case VINUM_PLEX_TYPE:
if (Volno(dev) >= vinum_conf.volumes_allocated)
return ENXIO;
/* FALLTHROUGH */
case VINUM_RAWPLEX_TYPE:
index = Plexno(dev); /* get plex index in vinum_conf */
if (index >= vinum_conf.plexes_allocated)
return ENXIO; /* no such device */