home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20610 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  3.4 KB

  1. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!spool.mu.edu!agate!usenet.ins.cwru.edu!b63519.STUDENT.CWRU.Edu!dpn2
  2. From: dpn2@po.CWRU.Edu (Damien P. Neil)
  3. Newsgroups: comp.os.linux
  4. Subject: 0.99 boot problems -- the solution
  5. Date: Wed, 16 Dec 1992 06:32:33 GMT
  6. Organization: Case Western Reserve University
  7. Lines: 77
  8. Message-ID: <dpn2.209.724487553@po.CWRU.Edu>
  9. References: <78369@hydra.gatech.EDU> <dpn2.208.724469868@po.CWRU.Edu>
  10. NNTP-Posting-Host: b63519.student.cwru.edu
  11.  
  12. For all people having 0.99 die on startup, here is the solution. There is a 
  13. small bug in 0.99 that needs to be fixed -- the patch was posted to this 
  14. newsgroup and c.o.l.a., but I (and others, apparently) managed to miss it. I 
  15. am reposting it below.
  16.  
  17. This should solve any/all boot problems. (At least it did for me! :-)
  18.  
  19. I FINISHED MY FINALS!!!!!!! 0.99 WORKS!!!!!!!!! LIFE IS GOOD!!!!!!!!! :-)
  20.  
  21. -----------------------------------------------------------------------------
  22.  
  23. From: torvalds@klaava.Helsinki.FI (Linus Torvalds)
  24. Subject: IMPORTANT [BUG in 0.99] Re: [ANNOUNCE]: linux version 0.99
  25. Keywords: kernel linux 0.99
  26. Date: Mon, 14 Dec 1992 20:17:28 GMT
  27.  
  28. Simple but important bug-fixes follow.  Please check them out if you
  29. have had problems with 0.99. 
  30.  
  31. In article <1992Dec14.174625.1102@galileo.cc.rochester.edu>
  32. ctne_ltd@uhura.cc.rochester.edu (Chris Newbold) writes:
  33. >
  34. >Okay. I posted a note this morning about not being able to get 0.99 to boot.
  35. >Well, I solved that problem... Just my own stupidity. *BUT*, I may have a 
  36. >bug to report here.
  37. >
  38. >I also posted another note about X locking up perodically (Subject was 
  39. >[BUG REPORT] swapping trouble ?!?). Now that I am running 0.99, the kernel
  40. >manages to keep limping when X locks up--enough for syslogd to spit out what
  41. >happens: I get a whole bunch of "No free inodes -- contact Linus" messages.
  42.  
  43. Good.  I added code to handle the "out of inode" error more gracefully,
  44. and it seems to have found the error pretty efficiently (well, I
  45. suspected it already, which is why I wrote the code in the first place,
  46. but now it's confirmed).  Consider me contacted. 
  47.  
  48. Sadly, the "out of inode" code has a silly bug that can lead to kernel
  49. panics at bootup: the 'inode_wait' wait-queue is not correctly
  50. initialized to NULL, so people booting from floppy may get bad values
  51. here. So here are a couple of fixes for 0.99 - unofficial, but I would
  52. like to hear if there are still problems after these:
  53.  
  54.  1) in linux/fs/inode.c, at the start, change
  55.  
  56.         static struct wait_queue * inode_wait;
  57.  
  58.     to
  59.  
  60.         static struct wait_queue * inode_wait = NULL;
  61.  
  62.  2) in linux/include/linux/fs.h, double the value of NR_INODE (to 256),
  63.     ie change
  64.  
  65.         #define NR_INODE 128
  66.  
  67.     to
  68.  
  69.         #define NR_INODE 256
  70.  
  71. and see if that is enough (it really should be: NR_FILE is 128, so the
  72. above value for NR_INODE should leave plenty of inodes for things like
  73. executables etc).  Hopefully you won't get the "No free inodes" problem
  74. any more. 
  75.  
  76. Note that I'll have to make the number of inodes dynamic, but I won't do
  77. so for 1.0, as the changes would be big enough to be bug-prone.  1.0
  78. need not be perfect, but I hope it will be stable. 
  79.  
  80.                 Linus
  81.  
  82.  
  83. -- 
  84. Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
  85. -----
  86. Damien Neil   dpn2@po.cwru.edu    "Until somebody debugs reality, the best
  87. Case Western Reserve University    I can do is a quick patch here and there."
  88. CMPS/EEAP double majoring masochist               - Erik Green
  89.