*BSD News Article 6514


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!rpi!psinntp!psinntp!l5next!scotty
From: scotty@gagetalker.com (Scott Turner)
Subject: Problems with beta patched wd.c
Message-ID: <1992Oct13.030340.3796@gagetalker.com>
Sender: scotty@gagetalker.com
Organization: L5 Computing
Date: Tue, 13 Oct 1992 03:03:40 GMT
Lines: 39

My kernel stopped working after applying the beta patch kit.
The system couldn't mount root.

The problem was that patch00021 changed the behaviour of
wd.c regarding controllers that didn't grok what
wdgetctlr() did. My Adaptec 2322B ESDI adaptor doesn't
seem to understand this command and patch00021 would
then decide there was no drive attached. This resulted in
my system having no hard disks, hence no ability to
mount root. :)

The following patch puts things back the way they
were:
*** wd.c.pl3    Mon Oct 12 19:53:40 1992
--- wd.c        Mon Oct 12 19:55:56 1992
***************
*** 236,244 ****
                        du->dk_unit = unit;
                }
                else {
!                       free(du, M_TEMP);
                        wddrives[unit] = 0;
!               }
        }
        return(1);
  }
--- 237,246 ----
                        du->dk_unit = unit;
                }
                else {
!                       du->dk_unit = unit;
! /*                    free(du, M_TEMP);
                        wddrives[unit] = 0;
! */            }
        }
        return(1);
  }

Scotty