For some reason all USB memory sticks I happen to have trigger an
Assuming drive cache: write through
error when inserted into a USB port. But if one looks at the code
paths that trigger this error one notices that in most cases either:
- write through is explicitly requested (via the usb-storage
NO_WP_DETECT flag);
- preceded by a previous error; or
- preceded by an ordinary notice.
So it seems this error can be safely downgraded to a notice.
Signed-off-by: Paul Bolle <pebolle@xxxxxxxxxx>
---
drivers/scsi/sd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 5ba5c2a..a887491 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -2258,7 +2258,7 @@ bad_sense:
sd_printk(KERN_ERR, sdkp, "Asking for cache data failed\n");
defaults:
- sd_printk(KERN_ERR, sdkp, "Assuming drive cache: write through\n");
+ sd_printk(KERN_NOTICE, sdkp, "Assuming drive cache: write through\n");
sdkp->WCE = 0;
sdkp->RCD = 0;
sdkp->DPOFUA = 0;
--
1.7.7.6
--
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
[SCSI Target Devel]
[Linux SCSI Target Infrastructure]
[Kernel Newbies]
[Share Photos]
[IDE]
[Security]
[Git]
[Netfilter]
[Bugtraq]
[Photos]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Linux ATA RAID]
[Linux IIO]
[Samba]
[Video 4 Linux]
[Device Mapper]
[Linux Resources]