Since version 1.10, sdparm would return the mode page "Write
parameters" if the MODE SENSE data from the device has a 05h mode
page. However, the page number was also used for mode page called
"Flexible geometry":
[tom@localhost ~]$ sudo sdparm /dev/sdb
/dev/sdb: SanDisk Ultra II 240GB 0
Write parameters (MMC) mode page:
BUFE 0 [cha: n, def: 0, sav: 0]
[tom@localhost ~]$ sudo sg_modes /dev/sdb
SanDisk Ultra II 240GB 0 peripheral_type: disk [0x0]
Mode parameter header from MODE SENSE(10):
Mode data length=40, medium type=0x00, WP=0, DpoFua=0, longlba=0
Block descriptor length=0
>> Flexible geometry (obsolete), page_control: current
00 05 1e 00 00 10 3f 02 00 3f ff 00 00 00 00 00 00
10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Therefore, it would be nice if sdparm can be made to return the mode
page "wp" only when the device is an MMC device (PERIPHERAL DEVICE
TYPE = 05h).
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html