Subject: core dump fails with ENXIO [Re: kcore on sun3x (Re: CVS commit: syssrc)]
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-sun3
Date: 06/01/2001 10:43:03
Hi,
I think I found the problem:
--- sd.c 2001/05/29 01:02:39 1.176
+++ sd.c 2001/06/01 08:38:33
@@ -1333,7 +1333,7 @@
chan = periph->periph_channel;
/* Make sure it was initialized. */
- if ((periph->periph_flags & PERIPH_MEDIA_LOADED) != 0)
+ if ((periph->periph_flags & PERIPH_MEDIA_LOADED) == 0)
return (ENXIO);
/* Convert to disk sectors. Request must be a multiple of size. */
Just a reversed test. The pre-thorpej_scsipi this test was:
if ((sd->sc_link->flags & SDEV_MEDIA_LOADED) != SDEV_MEDIA_LOADED)
With this change core dump works on my 3/60
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--