Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35d1efe8 authored by Masanari Iida's avatar Masanari Iida Committed by Nicholas Bellinger
Browse files

target: Fix minor spelling typos in drivers/target



Correct spelling typo in printk and comment within drivers/target.

Signed-off-by: default avatarMasanari Iida <standby24x7@gmail.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 9c58b7dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -344,7 +344,7 @@ int target_emulate_set_target_port_groups(struct se_cmd *cmd)
			 */
			 */
			rtpi = get_unaligned_be16(ptr + 2);
			rtpi = get_unaligned_be16(ptr + 2);
			/*
			/*
			 * Locate the matching relative target port identifer
			 * Locate the matching relative target port identifier
			 * for the struct se_device storage object.
			 * for the struct se_device storage object.
			 */
			 */
			spin_lock(&dev->se_port_lock);
			spin_lock(&dev->se_port_lock);
+1 −1
Original line number Original line Diff line number Diff line
@@ -1200,7 +1200,7 @@ static ssize_t target_core_dev_pr_show_attr_res_pr_holder_tg_port(
		" Target Node Endpoint: %s\n", tfo->get_fabric_name(),
		" Target Node Endpoint: %s\n", tfo->get_fabric_name(),
		tfo->tpg_get_wwn(se_tpg));
		tfo->tpg_get_wwn(se_tpg));
	len += sprintf(page+len, "SPC-3 Reservation: Relative Port"
	len += sprintf(page+len, "SPC-3 Reservation: Relative Port"
		" Identifer Tag: %hu %s Portal Group Tag: %hu"
		" Identifier Tag: %hu %s Portal Group Tag: %hu"
		" %s Logical Unit: %u\n", lun->lun_sep->sep_rtpi,
		" %s Logical Unit: %u\n", lun->lun_sep->sep_rtpi,
		tfo->get_fabric_name(), tfo->tpg_get_tag(se_tpg),
		tfo->get_fabric_name(), tfo->tpg_get_tag(se_tpg),
		tfo->get_fabric_name(), lun->unpacked_lun);
		tfo->get_fabric_name(), lun->unpacked_lun);
+3 −3
Original line number Original line Diff line number Diff line
@@ -531,7 +531,7 @@ static struct se_port *core_alloc_port(struct se_device *dev)
	}
	}
again:
again:
	/*
	/*
	 * Allocate the next RELATIVE TARGET PORT IDENTIFER for this struct se_device
	 * Allocate the next RELATIVE TARGET PORT IDENTIFIER for this struct se_device
	 * Here is the table from spc4r17 section 7.7.3.8.
	 * Here is the table from spc4r17 section 7.7.3.8.
	 *
	 *
	 *    Table 473 -- RELATIVE TARGET PORT IDENTIFIER field
	 *    Table 473 -- RELATIVE TARGET PORT IDENTIFIER field
@@ -548,7 +548,7 @@ static struct se_port *core_alloc_port(struct se_device *dev)


	list_for_each_entry(port_tmp, &dev->dev_sep_list, sep_list) {
	list_for_each_entry(port_tmp, &dev->dev_sep_list, sep_list) {
		/*
		/*
		 * Make sure RELATIVE TARGET PORT IDENTIFER is unique
		 * Make sure RELATIVE TARGET PORT IDENTIFIER is unique
		 * for 16-bit wrap..
		 * for 16-bit wrap..
		 */
		 */
		if (port->sep_rtpi == port_tmp->sep_rtpi)
		if (port->sep_rtpi == port_tmp->sep_rtpi)
@@ -595,7 +595,7 @@ static void core_export_port(
	}
	}


	dev->dev_port_count++;
	dev->dev_port_count++;
	port->sep_index = port->sep_rtpi; /* RELATIVE TARGET PORT IDENTIFER */
	port->sep_index = port->sep_rtpi; /* RELATIVE TARGET PORT IDENTIFIER */
}
}


/*
/*
+4 −4
Original line number Original line Diff line number Diff line
@@ -338,7 +338,7 @@ u32 iscsi_get_pr_transport_id_len(
	 * 00b: iSCSI Initiator device TransportID format
	 * 00b: iSCSI Initiator device TransportID format
	 */
	 */
	if (pr_reg->isid_present_at_reg) {
	if (pr_reg->isid_present_at_reg) {
		len += 5; /* For ",i,0x" ASCII seperator */
		len += 5; /* For ",i,0x" ASCII separator */
		len += 7; /* For iSCSI Initiator Session ID + Null terminator */
		len += 7; /* For iSCSI Initiator Session ID + Null terminator */
		*format_code = 1;
		*format_code = 1;
	} else
	} else
@@ -415,20 +415,20 @@ char *iscsi_parse_pr_out_transport_id(
			*out_tid_len = (add_len + 4);
			*out_tid_len = (add_len + 4);
	}
	}
	/*
	/*
	 * Check for ',i,0x' seperator between iSCSI Name and iSCSI Initiator
	 * Check for ',i,0x' separator between iSCSI Name and iSCSI Initiator
	 * Session ID as defined in Table 390 - iSCSI initiator port TransportID
	 * Session ID as defined in Table 390 - iSCSI initiator port TransportID
	 * format.
	 * format.
	 */
	 */
	if (format_code == 0x40) {
	if (format_code == 0x40) {
		p = strstr(&buf[4], ",i,0x");
		p = strstr(&buf[4], ",i,0x");
		if (!p) {
		if (!p) {
			pr_err("Unable to locate \",i,0x\" seperator"
			pr_err("Unable to locate \",i,0x\" separator"
				" for Initiator port identifier: %s\n",
				" for Initiator port identifier: %s\n",
				&buf[4]);
				&buf[4]);
			return NULL;
			return NULL;
		}
		}
		*p = '\0'; /* Terminate iSCSI Name */
		*p = '\0'; /* Terminate iSCSI Name */
		p += 5; /* Skip over ",i,0x" seperator */
		p += 5; /* Skip over ",i,0x" separator */


		*port_nexus_ptr = p;
		*port_nexus_ptr = p;
		/*
		/*
+2 −2
Original line number Original line Diff line number Diff line
@@ -1620,7 +1620,7 @@ static int core_scsi3_decode_spec_i_port(
				goto out;
				goto out;
			}
			}
			/*
			/*
			 * Locate the desination initiator ACL to be registered
			 * Locate the destination initiator ACL to be registered
			 * from the decoded fabric module specific TransportID
			 * from the decoded fabric module specific TransportID
			 * at *i_str.
			 * at *i_str.
			 */
			 */
@@ -4257,7 +4257,7 @@ static int core_scsi3_pri_read_full_status(struct se_cmd *cmd)
			buf[off++] = ((port->sep_rtpi >> 8) & 0xff);
			buf[off++] = ((port->sep_rtpi >> 8) & 0xff);
			buf[off++] = (port->sep_rtpi & 0xff);
			buf[off++] = (port->sep_rtpi & 0xff);
		} else
		} else
			off += 2; /* Skip over RELATIVE TARGET PORT IDENTIFER */
			off += 2; /* Skip over RELATIVE TARGET PORT IDENTIFIER */


		/*
		/*
		 * Now, have the $FABRIC_MOD fill in the protocol identifier
		 * Now, have the $FABRIC_MOD fill in the protocol identifier
Loading