Re: [PATCH resend 1/4] scsi/sr: add no_read_disc_info scsi_device flag

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

 



On Tue, 3 Aug 2010, Matthew Dharm wrote:

> I'm willing to bet there are more devices out there like this.  Experience
> has shown that the more we make the stack issue commands to the device like
> one of the "popular" OSes, the fewer problems we have.  Thus, I prefer to
> fix these where commands originate.

This is a good point.  Since Windows apparently never sends 
READ_DISC_INFO commands, we court trouble by using those commands in 
the cdrom driver.  Is there any way to avoid using them?

As far as the READ-CAPACITY(16) bug, there may be a simpler fix.  In
sd_read_capacity(), change

	if (sdp->fix_capacity ||

to

	if ((sdp->fix_capacity && sdkp->capacity > 0) ||

Alan Stern

--
To unsubscribe from this list: 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