All of lore.kernel.org
 help / color / mirror / Atom feed
* RFE: sdparm: return mode page "Write parameters" for only MMC devices
@ 2016-07-12 12:43 Tom Yan
  0 siblings, 0 replies; only message in thread
From: Tom Yan @ 2016-07-12 12:43 UTC (permalink / raw)
  To: dgilbert; +Cc: linux-scsi

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).

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-12 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-12 12:43 RFE: sdparm: return mode page "Write parameters" for only MMC devices Tom Yan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.