public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Write-protect checks
@ 2005-12-08 18:32 Salyzyn, Mark
  2005-12-08 23:25 ` Douglas Gilbert
  2005-12-09 16:34 ` [PATCH] Always do write-protect check Alan Stern
  0 siblings, 2 replies; 6+ messages in thread
From: Salyzyn, Mark @ 2005-12-08 18:32 UTC (permalink / raw)
  To: Alan Stern, SCSI development list, Alan Cox; +Cc: Dmitry Antipov

I have an interest in this being checked for fixed media as well, we
want to expose the underlying physical array components, but read &
write protected to protect the array contents. Christoph asked for us to
use the scsi layer for this check rather than spoofing it in the driver.

The other alternative is to add yet another device flag to enforce this.

Sincerely -- Mark Salyzyn

> -----Original Message-----
> From: linux-scsi-owner@vger.kernel.org 
> [mailto:linux-scsi-owner@vger.kernel.org] On Behalf Of Alan Stern
> Sent: Thursday, December 08, 2005 1:22 PM
> To: SCSI development list; Alan Cox
> Cc: Dmitry Antipov
> Subject: Write-protect checks
> 
> 
> On Thu, 8 Dec 2005, Alan Cox wrote:
> 
> > On Iau, 2005-12-08 at 11:00 -0500, Alan Stern wrote:
> > > module parameter.  For some reason (don't ask me why -- I 
> don't know) the
> > > SCSI core doesn't check a disk device's write-protect 
> status unless the
> > > device is marked as removable.
> > 
> > Have you asked the scsi maintainers why this occurs. Having 
> had a quick
> > look over the specs I have here I can't see why this is done either.
> 
> No, I haven't.
> 
> Okay guys.  Does anyone know why sd.c calls 
> sd_read_write_protect_flag 
> only for devices with removable media?
> 
> Alan Stern
> 
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <453E33D54126A643A9757AFD91EEBB3402409ACA@CXOEXC12.AMERICAS.CPQCORP.NET>]
[parent not found: <1134064043.17102.43.camel@localhost.localdomain>]

end of thread, other threads:[~2005-12-09 17:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-08 18:32 Write-protect checks Salyzyn, Mark
2005-12-08 23:25 ` Douglas Gilbert
2005-12-09 16:34 ` [PATCH] Always do write-protect check Alan Stern
2005-12-09 17:51   ` James Bottomley
     [not found] <453E33D54126A643A9757AFD91EEBB3402409ACA@CXOEXC12.AMERICAS.CPQCORP.NET>
2005-12-08 19:00 ` Write-protect checks Alan Stern
     [not found] <1134064043.17102.43.camel@localhost.localdomain>
2005-12-08 18:22 ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox