Ignore all md disks, installing on them would be particularly pointless.

Its not fatal to find hardware we don't know.
This commit is contained in:
Poul-Henning Kamp 2000-07-04 13:46:43 +00:00
parent fd473ea108
commit c638a74daa
3 changed files with 18 additions and 6 deletions

View File

@ -435,9 +435,13 @@ skipif:
Chunk *c1;
Disk *d;
if (names[i][0] == 'm' && names[i][1] == 'd')
continue;
d = Open_Disk(names[i]);
if (!d)
msgFatal("Unable to open disk %s", names[i]);
if (!d) {
msgDebug("Unable to open disk %s", names[i]);
continue;
}
deviceRegister(names[i], names[i], d->name, DEVICE_TYPE_DISK, FALSE,
dummyInit, dummyGet, dummyShutdown, d);

View File

@ -435,9 +435,13 @@ skipif:
Chunk *c1;
Disk *d;
if (names[i][0] == 'm' && names[i][1] == 'd')
continue;
d = Open_Disk(names[i]);
if (!d)
msgFatal("Unable to open disk %s", names[i]);
if (!d) {
msgDebug("Unable to open disk %s", names[i]);
continue;
}
deviceRegister(names[i], names[i], d->name, DEVICE_TYPE_DISK, FALSE,
dummyInit, dummyGet, dummyShutdown, d);

View File

@ -435,9 +435,13 @@ skipif:
Chunk *c1;
Disk *d;
if (names[i][0] == 'm' && names[i][1] == 'd')
continue;
d = Open_Disk(names[i]);
if (!d)
msgFatal("Unable to open disk %s", names[i]);
if (!d) {
msgDebug("Unable to open disk %s", names[i]);
continue;
}
deviceRegister(names[i], names[i], d->name, DEVICE_TYPE_DISK, FALSE,
dummyInit, dummyGet, dummyShutdown, d);