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:
jkh 2000-07-05 07:15:57 +00:00
parent e51ae31c23
commit 0e7721bc5f
3 changed files with 9 additions and 3 deletions

View File

@ -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]);

View File

@ -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]);

View File

@ -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]);