Re: BUG in kernel: Wrong Handling of USB HDDâsin scsiglue(slave_configure) and scsi/sd(sd_read_cache_type)

From: James Bottomley
Date: Thu Sep 29 2011 - 14:27:12 EST


On Thu, 2011-09-29 at 14:49 +0530, Amit Sahrawat wrote:
> The patch did not work, although it did get pass the earlier condition
> which I mentioned- but still Write Cache is not taken into account â
> seems mode sensing in sd_read_cache_type() does not send proper
> request to the device â or does not read in proper bytes for this(as
> per hdparm command analysis):
>
> Logs After Connecting:
> scsi 0:0:0:0: Direct-Access Seagate Portable 0130 PQ: 0 ANSI: 4
> sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB)
> sd 0:0:0:0: [sda] Write Protect is off
> sd 0:0:0:0: [sda] No Caching mode page present

This line means that a request for page 0x0 didn't turn up the caching
mode page in the list of supported pages.

What does

sg_inq --page=0x0 /dev/sda

show?

James


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/