[SCSI] ipr: fix resource address formatting and add attribute for device ID
This patch fixes a resource address formatting problem where the first byte was being zeroed out. Also, the device ID is now made available as a sysfs attribute. Signed-off-by: Wayne Boyer <wayneb@linux.vnet.ibm.com> Acked-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:

committed by
James Bottomley

parent
6f7efaabef
commit
46d7456324
@@ -26,6 +26,7 @@
|
||||
#ifndef _IPR_H
|
||||
#define _IPR_H
|
||||
|
||||
#include <asm/unaligned.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/completion.h>
|
||||
#include <linux/libata.h>
|
||||
@@ -372,7 +373,7 @@ struct ipr_config_table_entry {
|
||||
|
||||
struct ipr_res_addr res_addr;
|
||||
__be32 res_handle;
|
||||
__be32 reserved4[2];
|
||||
__be32 lun_wwn[2];
|
||||
struct ipr_std_inq_data std_inq_data;
|
||||
}__attribute__ ((packed, aligned (4)));
|
||||
|
||||
@@ -1210,6 +1211,7 @@ struct ipr_resource_entry {
|
||||
|
||||
__be32 res_handle;
|
||||
__be64 dev_id;
|
||||
__be64 lun_wwn;
|
||||
struct scsi_lun dev_lun;
|
||||
u8 res_path[8];
|
||||
|
||||
|
Reference in New Issue
Block a user