home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25088 < prev    next >
Encoding:
Text File  |  1993-01-22  |  2.0 KB  |  73 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!crchh327!crchh7b9!minyard
  3. From: minyard@crchh7b9 (Corey Minyard)
  4. Subject: Patch to ISO FS for Sony interface
  5. Sender: news@news.rich.bnr.ca (news server)
  6. Message-ID: <C18Aop.1pv@news.rich.bnr.ca>
  7. Date: Fri, 22 Jan 1993 00:00:25 GMT
  8. Nntp-Posting-Host: crchh7b9
  9. Organization: BNR, Inc.
  10. X-Newsreader: TIN [version 1.1 PL8]
  11. Lines: 60
  12.  
  13. Due to the tight binding between the ISO filesystem and the SCSI CDROM,
  14. a problem has cropped up with the disk change check routine.  Try
  15. applying the following patch if you want to use the Sony interface driver:
  16.  
  17.  
  18. *** linux/fs/isofs/inode.c.old    Thu Jan 21 17:48:36 1993
  19. --- linux/fs/isofs/inode.c    Thu Jan 21 17:49:21 1993
  20. ***************
  21. *** 18,24 ****
  22. --- 18,29 ----
  23.   #include <asm/segment.h>
  24.   #include <linux/errno.h>
  25.   
  26. + #if defined(CONFIG_BLK_DEV_SR) && defined(CONFIG_SCSI)
  27.   extern int check_cdrom_media_change(int, int);
  28. + #endif
  29. + #if defined(CONFIG_BLK_DEV_SCD)
  30. + extern int sony_check_cdrom_media_change(int, int);
  31. + #endif
  32.   
  33.   #ifdef LEAK_CHECK
  34.   static int check_malloc = 0;
  35. ***************
  36. *** 225,235 ****
  37.           printk("get root inode failed\n");
  38.           return NULL;
  39.       }
  40.       if(MAJOR(s->s_dev) == 11) {
  41. !         /* Chech this one more time. */
  42.           if(check_cdrom_media_change(s->s_dev, 0))
  43.             goto out;
  44.       };
  45.       return s;
  46.    out: /* Kick out for various error conditions */
  47.       brelse(bh);
  48. --- 230,250 ----
  49.           printk("get root inode failed\n");
  50.           return NULL;
  51.       }
  52. + #if defined(CONFIG_BLK_DEV_SR) && defined(CONFIG_SCSI)
  53.       if(MAJOR(s->s_dev) == 11) {
  54. !         /* Check this one more time. */
  55.           if(check_cdrom_media_change(s->s_dev, 0))
  56.             goto out;
  57.       };
  58. + #endif
  59. + #if defined (CONFIG_BLK_DEV_SCD)
  60. +     if(MAJOR(s->s_dev) == 15) {
  61. +         /* Check this one more time. */
  62. +         if(sony_check_cdrom_media_change(s->s_dev, 0))
  63. +           goto out;
  64. +     };
  65. + #endif
  66.       return s;
  67.    out: /* Kick out for various error conditions */
  68.       brelse(bh);
  69.  
  70. Corey
  71. minyard@wf-rch.cirr.com
  72.