From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Reinecke Subject: [PATCHv7 0/3][Resend] Display EVPD pages in sysfs Date: Thu, 13 Feb 2014 11:27:58 +0100 Message-ID: <1392287281-75002-1-git-send-email-hare@suse.de> Return-path: Received: from cantor2.suse.de ([195.135.220.15]:33310 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752198AbaBMK2D (ORCPT ); Thu, 13 Feb 2014 05:28:03 -0500 Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James Bottomley Cc: linux-scsi@vger.kernel.org, Christoph Hellwig , Hannes Reinecke Hi all, After discussion with jejb I've dropped the EVPD parsing. So with this version we're just displaying the EVPD page 0x80 and 0x83 as hexdumps; no parsing is attempted. This drastically simplifies the patch, and we don't have to worry about any parsing errors in kernel space. Of course we'll need a parser in userspace, but that doesn't need to do any I/O. So it's still a very nice gain. (I had to redo the patchset as it no longer applied to -rc2. Hence the resend. Sorry for that.) Hannes Reinecke (3): scsi_sysfs: Implement 'is_visible' callback Add EVPD page 0x83 to sysfs Add EVPD page 0x80 to sysfs drivers/scsi/scsi.c | 104 ++++++++++++++++++-- drivers/scsi/scsi_scan.c | 3 + drivers/scsi/scsi_sysfs.c | 229 +++++++++++++++++++++++++++------------------ include/scsi/scsi_device.h | 5 + 4 files changed, 242 insertions(+), 99 deletions(-) -- 1.7.12.4