*BSD News Article 16841


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!milano!uudell!obiwan!bob
From: bob@obiwan.uucp (Bob Willcox)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: FWD: new scsi/st.c
Message-ID: <C84Cwo.AE4@obiwan.uucp>
Date: 4 Jun 93 22:53:12 GMT
References: <1993May26.185105.212@coe.montana.edu> <C7zrB8.EnM@obiwan.uucp>
Organization: Bob's Place, Austin TX
Lines: 55

Okay, here is a second fix from Julian.  This one fixes the final short
block problem.  My eternal thanks again go to Julian!

-------------------------------- cut here -------------------------------
ok, here's the fix for the last record bug:


*** /tmp/,RCSt1000999	Fri Jun  4 22:56:19 1993
--- st.c	Fri Jun  4 22:42:25 1993
***************
*** 1970,1976 ****
  		switch(key)
  		{
  		case	0x0:
! 			xs->resid = 0; /* XXX check this */
  			return(ESUCCESS);
  		case	0x1:
  			if(!silent)
--- 1970,1977 ----
  		switch(key)
  		{
  		case	0x0:
! 			if(!(sense->ext.extended.ili))
! 				xs->resid = 0; /* XXX check this */
  			return(ESUCCESS);
  		case	0x1:
  			if(!silent)
***************
*** 1989,1995 ****
  			 		printf("\n");
  				}
  			}
! 			xs->resid = 0; /* XXX check this */
  			return(ESUCCESS);
  		case	0x2:
  			if(!silent) printf("st%d: not ready\n ", unit); 
--- 1990,1997 ----
  			 		printf("\n");
  				}
  			}
! 			if(!(sense->ext.extended.ili))
! 				xs->resid = 0; /* XXX check this */
  			return(ESUCCESS);
  		case	0x2:
  			if(!silent) printf("st%d: not ready\n ", unit); 
> 
> I will gladly post this patch if you think I should.
and this one?

julian

-- 
Bob Willcox                ...!{rutgers|ames}!cs.utexas.edu!uudell!obiwan!bob
Phone: 512 258-4224 (home)
       512 838-3914 (work)