Explorar el Código

[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 hace 15 años
padre
commit
cf716a0ce6
Se han modificado 2 ficheros con 0 adiciones y 3 borrados
  1. 0
    2
      src/include/gpxe/scsi.h
  2. 0
    1
      src/net/tcp/iscsi.c

+ 0
- 2
src/include/gpxe/scsi.h Ver fichero

@@ -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 Ver fichero

@@ -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…
Cancelar
Guardar