aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2009-08-09 16:09:47 +0100
committerMichael Brown <mcb30@etherboot.org>2009-08-10 19:31:45 +0100
commitcf716a0ce622557cbd407980bf1e8b5db1ed6891 (patch)
tree29016c5bec00c1bdfe50bf6ba80600b319ec4de0
parentd94479468010ba2f64bc8664585e9c3491129303 (diff)
downloadipxe-cf716a0ce622557cbd407980bf1e8b5db1ed6891.tar.gz
[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;