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:
Jordan K. Hubbard 2000-07-05 07:15:57 +00:00
parent 1fcf5deb4a
commit 632116832b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62620
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]);