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