Remove the hack-around for the slice/label code, it didn't
cover the hole.
This commit is contained in:
parent
9842e24c34
commit
22628ccf96
@ -106,9 +106,7 @@ dev_t
|
||||
disk_create(int unit, struct disk *dp, int flags, struct cdevsw *cdevsw, struct cdevsw *proto)
|
||||
{
|
||||
static int once;
|
||||
dev_t dev, cdev;
|
||||
int i;
|
||||
char buf[20];
|
||||
dev_t dev;
|
||||
|
||||
if (!once) {
|
||||
EVENTHANDLER_REGISTER(dev_clone, disk_clone, 0, 1000);
|
||||
@ -138,14 +136,6 @@ disk_create(int unit, struct disk *dp, int flags, struct cdevsw *cdevsw, struct
|
||||
dp->d_devsw = cdevsw;
|
||||
LIST_INSERT_HEAD(&disklist, dp, d_list);
|
||||
|
||||
sprintf(buf, "%sc", dev->si_name);
|
||||
cdev = NODEV;
|
||||
disk_clone(NULL, buf, strlen(buf), &cdev);
|
||||
for (i = 1; i < 5; i++) {
|
||||
sprintf(buf, "%ss%d", dev->si_name, i);
|
||||
cdev = NODEV;
|
||||
disk_clone(NULL, buf, strlen(buf), &cdev);
|
||||
}
|
||||
return (dev);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user