Bug 106841
Summary: | ses: do not output error for simple subenclosure (handle Short Enclosure Status diagnostic page) | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | Tom Yan (tom.ty89) |
Component: | SCSI | Assignee: | linux-scsi (linux-scsi) |
Status: | NEW --- | ||
Severity: | normal | CC: | grawity, jejb, jejb |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.4.1 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Tom Yan
2015-10-29 04:26:17 UTC
Oops I missed the lsscsi output: [tom@localhost ~]$ sudo lsscsi -g | grep WD [7:0:0:0] disk WD My Passport 083A 1065 /dev/sdc /dev/sg3 [7:0:0:1] enclosu WD SES Device 1065 - /dev/sg4 This commit did NOT fix anything: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/scsi/ses.c?id=3417c1b5cb1fdc10261dbed42b05cc93166a78fd Only the error changes from: scsi 7:0:0:1: Failed to get diagnostic page 0x8000002 scsi 7:0:0:1: Failed to bind enclosure -19 to scsi 7:0:0:1: Wrong diagnostic page; asked for 1 got 0 scsi 7:0:0:1: Failed to get diagnostic page 0xffffffea scsi 7:0:0:1: Failed to bind enclosure -19 The ses driver should simply check whether there is an Short Enclosure Status page (i.e. it is a simple subenclosure) FIRST. If that's the case, the device should simply be skipped/bound WITHOUT error. |