All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv9 0/6] Display EVPD pages in sysfs
@ 2014-03-15  8:51 Hannes Reinecke
  2014-03-15  8:51 ` [PATCH 1/6] scsi_sysfs: Implement 'is_visible' callback Hannes Reinecke
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Hannes Reinecke @ 2014-03-15  8:51 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi, Hannes Reinecke

Here's now v9 of my patch series to display VPD pages
in sysfs.
Changes to v8:
- Fixed 'vpg' spelling error
- Moved to binary attributes
- Implement VPD page refreshing by either calling 'rescan'
  or due to a SCSI sense event.

So with this series all outstanding issues should be resolved.
And even Bart should be happy now as the vpd information can
be refreshed at any time.

Note, that with the move to binary sysfs attributes we lost
the functionality to hide the vpd page attributes if those
pages aren't supported.
I deliberately used the grouping functionality for the binary
attribute here, otherwise it would introduce a race window
during which the uevent was sent but no vpd page attribute
was present.
If that turns out to be a problem we should be fixing the
sysfs core to allow an 'is_visible' callback for binary
attributes, too.

Hannes Reinecke (6):
  scsi_sysfs: Implement 'is_visible' callback
  scsi: Return VPD page length in scsi_vpd_inquiry()
  Add EVPD page 0x83 to sysfs
  Add EVPD page 0x80 to sysfs
  ses: Use vpd information from scsi_device
  Invalidate VPD page data

 drivers/scsi/scsi.c        | 149 ++++++++++++++++++++++++++++--
 drivers/scsi/scsi_error.c  |   1 +
 drivers/scsi/scsi_scan.c   |  10 ++-
 drivers/scsi/scsi_sysfs.c  | 220 ++++++++++++++++++++++++++-------------------
 drivers/scsi/ses.c         |  38 +++-----
 include/scsi/scsi_device.h |   7 ++
 6 files changed, 297 insertions(+), 128 deletions(-)

-- 
1.7.12.4


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-03-20 13:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-15  8:51 [PATCHv9 0/6] Display EVPD pages in sysfs Hannes Reinecke
2014-03-15  8:51 ` [PATCH 1/6] scsi_sysfs: Implement 'is_visible' callback Hannes Reinecke
2014-03-15  8:51 ` [PATCH 2/6] scsi: Return VPD page length in scsi_vpd_inquiry() Hannes Reinecke
2014-03-19 16:38   ` Tomas Henzl
2014-03-15  8:51 ` [PATCH 3/6] Add EVPD page 0x83 to sysfs Hannes Reinecke
2014-03-15  8:51 ` [PATCH 4/6] Add EVPD page 0x80 " Hannes Reinecke
2014-03-15  8:51 ` [PATCH 5/6] ses: Use vpd information from scsi_device Hannes Reinecke
2014-03-15  8:51 ` [PATCH 6/6] Invalidate VPD page data Hannes Reinecke
2014-03-17 22:11   ` Jeremy Linton
2014-03-18  6:52     ` Hannes Reinecke
2014-03-18 13:23       ` James Bottomley
2014-03-18 14:45       ` Elliott, Robert (Server Storage)
2014-03-20 13:37   ` James Bottomley

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.