Back out revision 1.38. disklabel now understands vinum volumes again.
This commit is contained in:
parent
027582d5b7
commit
321876056d
@ -329,7 +329,7 @@ vinumioctl(dev_t dev,
|
||||
sd = &SD[objno];
|
||||
|
||||
switch (cmd) {
|
||||
case DIOCGDINFO: /* get disk label */
|
||||
case DIOCGDINFO: /* get disk label */
|
||||
get_volume_label(sd->name, 1, sd->sectors, (struct disklabel *) data);
|
||||
break;
|
||||
|
||||
@ -389,10 +389,6 @@ vinumioctl(dev_t dev,
|
||||
*(off_t *)data = vol->size << DEV_BSHIFT;
|
||||
break;
|
||||
|
||||
case DIOCGDINFO: /* get disk label */
|
||||
get_volume_label(vol->name, 1, vol->size, (struct disklabel *) data);
|
||||
break;
|
||||
|
||||
case DIOCGSECTORSIZE:
|
||||
*(u_int *)data = DEV_BSIZE;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user