Removed `Debugger("no slices")'. It's normal and harmless to have no

slices in sd_open() after a media change when the previous sd_open()
discards the previous slices and then fails.  sd_open() just handles
media changes poorly and fails too often.
This commit is contained in:
Bruce Evans 1997-01-29 14:18:34 +00:00
parent 26add14927
commit 0f49e57b57
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22095

View File

@ -281,7 +281,7 @@ sd_open(dev, mode, fmt, p, sc_link)
* If it's been invalidated, then forget the label
*/
sc_link->flags |= SDEV_OPEN; /* unit attn becomes an err now */
if (!(sc_link->flags & SDEV_MEDIA_LOADED)) {
if (!(sc_link->flags & SDEV_MEDIA_LOADED) && sd->dk_slices != NULL) {
/*
* If somebody still has it open, then forbid re-entry.
*/
@ -290,10 +290,7 @@ sd_open(dev, mode, fmt, p, sc_link)
goto bad;
}
if (sd->dk_slices == NULL)
Debugger("sdopen: no slices");
else
dsgone(&sd->dk_slices);
dsgone(&sd->dk_slices);
}
/*
* In case it is a funny one, tell it to start