RE: read only scsi disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thx.

but if i am correct, cdrom is handled in sr while disk is handled in sd.
so they are independent issues. of course, might be same reason. :P

the key here is why sd.c need to judge write protect only for removable
disk. is there no case that a disk is read only but not removable? for
example, if later a secure disk has internal security protection and
after authentication, the allowed option is only to read? this can be
common for networked disks.

ming




On Thu, 2006-02-09 at 14:32 -0500, berthiaume_wayne@xxxxxxx wrote:
> I seem to recall this behavior had something to do with the handling of
> CD/ROM disks at one time.
> 
> Regards,
> Wayne. 
> 
> -----Original Message-----
> From: linux-scsi-owner@xxxxxxxxxxxxxxx
> [mailto:linux-scsi-owner@xxxxxxxxxxxxxxx] On Behalf Of Ming Zhang
> Sent: Thursday, February 09, 2006 2:19 PM
> To: Matthew Wilcox
> Cc: linux-scsi; Damian Pietras
> Subject: Re: read only scsi disk
> 
> so fc disk is also removable, since anyone could unplug the fc cable at
> any time...
> 
> so even parallel scsi disk, sata disk...
> 
> i donot think this is a good reason. ;)
> 
> ming
> 
> On Thu, 2006-02-09 at 12:02 -0700, Matthew Wilcox wrote:
> > On Thu, Feb 09, 2006 at 12:04:07PM -0500, Ming Zhang wrote:
> > > We are adding the support for an OSS iscsi target to support export an
> > > iscsi disk as readonly. We set correct read only bit in sense dbd. But
> > > we found that only when we set the removable bit, the linux will
> > > actually check the ro bit. more detail information can be found from
> > 
> > Surely all iSCSI discs are removable, since anyone could unplug the
> > network cable at any time ...
> 
> -
> : send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux