home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10239 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.3 KB  |  53 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!news.unomaha.edu!cwis!trussell
  3. From: trussell@cwis.unomaha.edu (Tim Russell)
  4. Subject: Re: 0.97pl4 breaks SCSI extended partition code
  5. Message-ID: <trussell.716008494@cwis>
  6. Sender: news@news.unomaha.edu (UNO Network News Server)
  7. Organization: University of Nebraska at Omaha
  8. References: <716010250snx@prism.demon.co.uk> <1992Sep9.000644.1996@galileo.cc.rochester.edu>
  9. Date: Wed, 9 Sep 1992 03:14:54 GMT
  10. Lines: 41
  11.  
  12. ctne_ltd@uhura.cc.rochester.edu (Chris Newbold) writes:
  13.  
  14. >Maybe Drew would like to look into this as a generic SCSI problem? I don;t
  15. >know how far off the much-awaited version 2 of the SCSI drivers are, but
  16. >maybe this is a quick-fix.
  17.  
  18.     Tonight I did lots of printk()'ing and #define DEBUG'ing and came up
  19. with the reason my system at least won't read extended partitions.
  20.  
  21.     The problem is in kernel/blk_drv/ll_rw_block.c, in function make_request().
  22. The chain of execution is: extended_partition() calls bread() with the dev#
  23. of the extended partition, block 0, size 1024.  bread() calls ll_rw_block()
  24. with READ, which calls make_request().
  25.  
  26.     On about line 155 of ll_rw_block.c (in 0.97pl4 anyway), this if statement
  27. gets executed:
  28.  
  29.     if (blk_size[major])
  30.       if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) {
  31.         bh->b_dirt = bh->b_uptodate = 0;
  32.         return;
  33.       }
  34.  
  35. and that's all she wrote, bread ends up falling through to returning an error.
  36.  
  37.     Being new to Linux kernel hacking, I'm not exactly positive what's going
  38. on here, but it doesn't seem to have anything to do with the SCSI code per
  39. se to me.  I enabled DEBUG in sd.c and never got any messages at all during
  40. the extended_partition processing, so it isn't even getting down to issuing
  41. a request to the SCSI driver, the problem is up in the buffer code.
  42.  
  43.     Is this code to deal with variable block sizes that was added recently?
  44. That would explain some things.  I'm going to grab plain 0.97 if I can find
  45. it and see, since I believe that's nearly the last version I got to work on
  46. my system.
  47.  
  48. --
  49.     Tim Russell                 Omaha, NE              trussell@unomaha.edu
  50. One of the richest men in the world made his billions selling a toy "operating
  51. system" that is more accurately described as a glorified bootstrap loader.
  52.                                                   -- Phil Karn
  53.