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
 struct scsi_device {
253
 struct scsi_device {
254
 	/** Block device interface */
254
 	/** Block device interface */
255
 	struct block_device blockdev;
255
 	struct block_device blockdev;
256
-	/** Logical unit number (LUN) */
257
-	struct scsi_lun lun;
258
 	/**
256
 	/**
259
 	 * Issue SCSI command
257
 	 * Issue SCSI command
260
 	 *
258
 	 *

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

1763
 	/* Attach parent interface, mortalise self, and return */
1763
 	/* Attach parent interface, mortalise self, and return */
1764
 	scsi->backend = ref_get ( &iscsi->refcnt );
1764
 	scsi->backend = ref_get ( &iscsi->refcnt );
1765
 	scsi->command = iscsi_command;
1765
 	scsi->command = iscsi_command;
1766
-	scsi->lun = iscsi->lun;
1767
 	ref_put ( &iscsi->refcnt );
1766
 	ref_put ( &iscsi->refcnt );
1768
 	return 0;
1767
 	return 0;
1769
 	
1768
 	

Loading…
Cancel
Save