From: Michael Brown Date: Sun, 9 Aug 2009 15:09:47 +0000 (+0100) Subject: [scsi] Make LUN a property of the SCSI backend only X-Git-Tag: v0.9.8~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf716a0ce622557cbd407980bf1e8b5db1ed6891;p=thirdparty%2Fipxe.git [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. --- diff --git a/src/include/gpxe/scsi.h b/src/include/gpxe/scsi.h index 9131a29a0..97416970d 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 74da05d68..771384b94 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;