summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2009-08-09 17:09:47 +0200
committerMichael Brown2009-08-10 20:31:45 +0200
commitcf716a0ce622557cbd407980bf1e8b5db1ed6891 (patch)
tree29016c5bec00c1bdfe50bf6ba80600b319ec4de0
parent[scsi] Generalise iscsi_parse_lun() to scsi_parse_lun() (diff)
downloadipxe-cf716a0ce622557cbd407980bf1e8b5db1ed6891.tar.gz
ipxe-cf716a0ce622557cbd407980bf1e8b5db1ed6891.tar.xz
ipxe-cf716a0ce622557cbd407980bf1e8b5db1ed6891.zip
[scsi] Make LUN a property of the SCSI backend only
Nothing within the SCSI core actually refers to the LUN, so we can simplify matters by treating it as purely a property of the backend.
-rw-r--r--src/include/gpxe/scsi.h2
-rw-r--r--src/net/tcp/iscsi.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/src/include/gpxe/scsi.h b/src/include/gpxe/scsi.h
index 9131a29a..97416970 100644
--- a/src/include/gpxe/scsi.h
+++ b/src/include/gpxe/scsi.h
@@ -253,8 +253,6 @@ struct scsi_lun {
struct scsi_device {
/** Block device interface */
struct block_device blockdev;
- /** Logical unit number (LUN) */
- struct scsi_lun lun;
/**
* Issue SCSI command
*
diff --git a/src/net/tcp/iscsi.c b/src/net/tcp/iscsi.c
index 74da05d6..771384b9 100644
--- a/src/net/tcp/iscsi.c
+++ b/src/net/tcp/iscsi.c
@@ -1763,7 +1763,6 @@ int iscsi_attach ( struct scsi_device *scsi, const char *root_path ) {
/* Attach parent interface, mortalise self, and return */
scsi->backend = ref_get ( &iscsi->refcnt );
scsi->command = iscsi_command;
- scsi->lun = iscsi->lun;
ref_put ( &iscsi->refcnt );
return 0;