Browse Source

[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.
tags/v0.9.8
Michael Brown 15 years ago
parent
commit
cf716a0ce6
2 changed files with 0 additions and 3 deletions
  1. 0
    2
      src/include/gpxe/scsi.h
  2. 0
    1
      src/net/tcp/iscsi.c

+ 0
- 2
src/include/gpxe/scsi.h View File

@@ -253,8 +253,6 @@ struct scsi_lun {
253 253
 struct scsi_device {
254 254
 	/** Block device interface */
255 255
 	struct block_device blockdev;
256
-	/** Logical unit number (LUN) */
257
-	struct scsi_lun lun;
258 256
 	/**
259 257
 	 * Issue SCSI command
260 258
 	 *

+ 0
- 1
src/net/tcp/iscsi.c View File

@@ -1763,7 +1763,6 @@ int iscsi_attach ( struct scsi_device *scsi, const char *root_path ) {
1763 1763
 	/* Attach parent interface, mortalise self, and return */
1764 1764
 	scsi->backend = ref_get ( &iscsi->refcnt );
1765 1765
 	scsi->command = iscsi_command;
1766
-	scsi->lun = iscsi->lun;
1767 1766
 	ref_put ( &iscsi->refcnt );
1768 1767
 	return 0;
1769 1768
 	

Loading…
Cancel
Save