Re: [Re: Linux 2.6.26-rc2] Write protect on on

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Monday, May 19, 2008 - 8:18 am

On Sun, 18 May 2008, Boaz Harrosh wrote:


That's right.


Yes, it never worked properly.  But now it fails in a bad way whereas 
before it failed in a benign way.


I'm not aware of any part of the spec where it says that.  In any case 
it doesn't matter what the spec says; we ought to be able to drive this 
device even if it isn't compliant with the spec.


The real question is how should we fix the problem.  For the sake of 
argument, let's say that we fix it by changing scsi_mode_sense() -- 
make the routine return 0 if the residue is so large that there isn't 
even a valid header.

But how can this be done?  Should we modify struct scsi_sense_hdr, by 
adding a "residue" field?

Alan Stern

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Re: Linux 2.6.26-rc2] Write protect on on, Maciej Rutecki, (Fri May 16, 7:55 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Fri May 16, 6:03 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Maciej Rutecki, (Fri May 16, 11:59 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Sat May 17, 6:49 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Sun May 18, 9:27 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Mon May 19, 8:18 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Mon May 19, 9:08 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Linus Torvalds, (Mon May 19, 9:36 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Mon May 19, 10:03 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Linus Torvalds, (Mon May 19, 10:27 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Mon May 19, 10:45 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Matthew Wilcox, (Mon May 19, 11:16 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Mon May 19, 12:17 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, James Bottomley, (Thu May 22, 1:23 am)