home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!crchh327!crchh7b9!minyard
- From: minyard@crchh7b9 (Corey Minyard)
- Subject: Patch to ISO FS for Sony interface
- Sender: news@news.rich.bnr.ca (news server)
- Message-ID: <C18Aop.1pv@news.rich.bnr.ca>
- Date: Fri, 22 Jan 1993 00:00:25 GMT
- Nntp-Posting-Host: crchh7b9
- Organization: BNR, Inc.
- X-Newsreader: TIN [version 1.1 PL8]
- Lines: 60
-
- Due to the tight binding between the ISO filesystem and the SCSI CDROM,
- a problem has cropped up with the disk change check routine. Try
- applying the following patch if you want to use the Sony interface driver:
-
-
- *** linux/fs/isofs/inode.c.old Thu Jan 21 17:48:36 1993
- --- linux/fs/isofs/inode.c Thu Jan 21 17:49:21 1993
- ***************
- *** 18,24 ****
- --- 18,29 ----
- #include <asm/segment.h>
- #include <linux/errno.h>
-
- + #if defined(CONFIG_BLK_DEV_SR) && defined(CONFIG_SCSI)
- extern int check_cdrom_media_change(int, int);
- + #endif
- + #if defined(CONFIG_BLK_DEV_SCD)
- + extern int sony_check_cdrom_media_change(int, int);
- + #endif
-
- #ifdef LEAK_CHECK
- static int check_malloc = 0;
- ***************
- *** 225,235 ****
- printk("get root inode failed\n");
- return NULL;
- }
- if(MAJOR(s->s_dev) == 11) {
- ! /* Chech this one more time. */
- if(check_cdrom_media_change(s->s_dev, 0))
- goto out;
- };
- return s;
- out: /* Kick out for various error conditions */
- brelse(bh);
- --- 230,250 ----
- printk("get root inode failed\n");
- return NULL;
- }
- +
- + #if defined(CONFIG_BLK_DEV_SR) && defined(CONFIG_SCSI)
- if(MAJOR(s->s_dev) == 11) {
- ! /* Check this one more time. */
- if(check_cdrom_media_change(s->s_dev, 0))
- goto out;
- };
- + #endif
- + #if defined (CONFIG_BLK_DEV_SCD)
- + if(MAJOR(s->s_dev) == 15) {
- + /* Check this one more time. */
- + if(sony_check_cdrom_media_change(s->s_dev, 0))
- + goto out;
- + };
- + #endif
- return s;
- out: /* Kick out for various error conditions */
- brelse(bh);
-
- Corey
- minyard@wf-rch.cirr.com
-