Replace phk's commit with code from my local tree which I happen
to like better (it's commented and easier to read).
This commit is contained in:
parent
e51ae31c23
commit
0e7721bc5f
@ -435,8 +435,10 @@ deviceGetAll(void)
|
||||
Chunk *c1;
|
||||
Disk *d;
|
||||
|
||||
if (names[i][0] == 'm' && names[i][1] == 'd')
|
||||
/* Ignore memory disks */
|
||||
if (!strncmp(names[i], "md", 2))
|
||||
continue;
|
||||
|
||||
d = Open_Disk(names[i]);
|
||||
if (!d) {
|
||||
msgDebug("Unable to open disk %s", names[i]);
|
||||
|
@ -435,8 +435,10 @@ deviceGetAll(void)
|
||||
Chunk *c1;
|
||||
Disk *d;
|
||||
|
||||
if (names[i][0] == 'm' && names[i][1] == 'd')
|
||||
/* Ignore memory disks */
|
||||
if (!strncmp(names[i], "md", 2))
|
||||
continue;
|
||||
|
||||
d = Open_Disk(names[i]);
|
||||
if (!d) {
|
||||
msgDebug("Unable to open disk %s", names[i]);
|
||||
|
@ -435,8 +435,10 @@ deviceGetAll(void)
|
||||
Chunk *c1;
|
||||
Disk *d;
|
||||
|
||||
if (names[i][0] == 'm' && names[i][1] == 'd')
|
||||
/* Ignore memory disks */
|
||||
if (!strncmp(names[i], "md", 2))
|
||||
continue;
|
||||
|
||||
d = Open_Disk(names[i]);
|
||||
if (!d) {
|
||||
msgDebug("Unable to open disk %s", names[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user