Commit b2520184 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] cciss partitioning stuff, per-disk gendisks

parent ac654455
This diff is collapsed.
...@@ -81,7 +81,8 @@ struct ctlr_info ...@@ -81,7 +81,8 @@ struct ctlr_info
int nr_frees; int nr_frees;
// Disk structures we need to pass back // Disk structures we need to pass back
struct gendisk gendisk; struct gendisk gendisk[NWD];
char names[12 * NWD];
// indexed by minor numbers // indexed by minor numbers
struct hd_struct hd[256]; struct hd_struct hd[256];
int sizes[256]; int sizes[256];
......
...@@ -1483,6 +1483,7 @@ static int revalidate_allvol(kdev_t dev) ...@@ -1483,6 +1483,7 @@ static int revalidate_allvol(kdev_t dev)
if (!drv->nr_blks) if (!drv->nr_blks)
continue; continue;
(BLK_DEFAULT_QUEUE(MAJOR_NR + ctlr))->hardsect_size = drv->blk_size; (BLK_DEFAULT_QUEUE(MAJOR_NR + ctlr))->hardsect_size = drv->blk_size;
disk->major_name = ida_names + (ctlr*NWD+i)*10;
add_gendisk(disk); add_gendisk(disk);
register_disk(disk, register_disk(disk,
mk_kdev(disk->major,disk->first_minor), mk_kdev(disk->major,disk->first_minor),
......
...@@ -137,11 +137,6 @@ char *disk_name (struct gendisk *hd, int minor, char *buf) ...@@ -137,11 +137,6 @@ char *disk_name (struct gendisk *hd, int minor, char *buf)
sprintf(s, "%s%d", "md", unit); sprintf(s, "%s%d", "md", unit);
maj = s; maj = s;
break; break;
case COMPAQ_CISS_MAJOR ... COMPAQ_CISS_MAJOR+7:
sprintf(s, "cciss/c%dd%d",
hd->major - COMPAQ_CISS_MAJOR, unit);
maj = s;
break;
case ATARAID_MAJOR: case ATARAID_MAJOR:
sprintf(s, "ataraid/d%d", unit); sprintf(s, "ataraid/d%d", unit);
maj = s; maj = s;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment