aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2011-07-19 01:17:43 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-07-22 05:37:49 -0400
commit163cd5fa9fcb7ccc73a9e39d5f601cfd41a23bfa (patch)
tree54f6d4bd12189c241f7b3fa8d33a722f6cb69f59
parent5de619a31d9cb051d1f818e661af4e54def82316 (diff)
target: fix typo Assoication -> Association
Additionally this patch brings proper apply of the designator type. However, the original code luckily has no bug, because the association equals to 0. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: James Bottomley <jbottomley@parallels.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r--drivers/target/target_core_cdb.c10
-rw-r--r--drivers/target/target_core_configfs.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/target/target_core_cdb.c b/drivers/target/target_core_cdb.c
index 145739bcf752..27e6a2e5e84a 100644
--- a/drivers/target/target_core_cdb.c
+++ b/drivers/target/target_core_cdb.c
@@ -188,11 +188,11 @@ target_emulate_evpd_83(struct se_cmd *cmd, unsigned char *buf)
188 /* CODE SET == Binary */ 188 /* CODE SET == Binary */
189 buf[off++] = 0x1; 189 buf[off++] = 0x1;
190 190
191 /* Set ASSOICATION == addressed logical unit: 0)b */ 191 /* Set ASSOCIATION == addressed logical unit: 0)b */
192 buf[off] = 0x00; 192 buf[off] = 0x00;
193 193
194 /* Identifier/Designator type == NAA identifier */ 194 /* Identifier/Designator type == NAA identifier */
195 buf[off++] = 0x3; 195 buf[off++] |= 0x3;
196 off++; 196 off++;
197 197
198 /* Identifier/Designator length */ 198 /* Identifier/Designator length */
@@ -293,7 +293,7 @@ check_port:
293 (tpg->se_tpg_tfo->get_fabric_proto_ident(tpg) << 4); 293 (tpg->se_tpg_tfo->get_fabric_proto_ident(tpg) << 4);
294 buf[off++] |= 0x1; /* CODE SET == Binary */ 294 buf[off++] |= 0x1; /* CODE SET == Binary */
295 buf[off] = 0x80; /* Set PIV=1 */ 295 buf[off] = 0x80; /* Set PIV=1 */
296 /* Set ASSOICATION == target port: 01b */ 296 /* Set ASSOCIATION == target port: 01b */
297 buf[off] |= 0x10; 297 buf[off] |= 0x10;
298 /* DESIGNATOR TYPE == Relative target port identifer */ 298 /* DESIGNATOR TYPE == Relative target port identifer */
299 buf[off++] |= 0x4; 299 buf[off++] |= 0x4;
@@ -338,7 +338,7 @@ check_tpgi:
338 (tpg->se_tpg_tfo->get_fabric_proto_ident(tpg) << 4); 338 (tpg->se_tpg_tfo->get_fabric_proto_ident(tpg) << 4);
339 buf[off++] |= 0x1; /* CODE SET == Binary */ 339 buf[off++] |= 0x1; /* CODE SET == Binary */
340 buf[off] = 0x80; /* Set PIV=1 */ 340 buf[off] = 0x80; /* Set PIV=1 */
341 /* Set ASSOICATION == target port: 01b */ 341 /* Set ASSOCIATION == target port: 01b */
342 buf[off] |= 0x10; 342 buf[off] |= 0x10;
343 /* DESIGNATOR TYPE == Target port group identifier */ 343 /* DESIGNATOR TYPE == Target port group identifier */
344 buf[off++] |= 0x5; 344 buf[off++] |= 0x5;
@@ -405,7 +405,7 @@ check_scsi_name:
405 (tpg->se_tpg_tfo->get_fabric_proto_ident(tpg) << 4); 405 (tpg->se_tpg_tfo->get_fabric_proto_ident(tpg) << 4);
406 buf[off++] |= 0x3; /* CODE SET == UTF-8 */ 406 buf[off++] |= 0x3; /* CODE SET == UTF-8 */
407 buf[off] = 0x80; /* Set PIV=1 */ 407 buf[off] = 0x80; /* Set PIV=1 */
408 /* Set ASSOICATION == target port: 01b */ 408 /* Set ASSOCIATION == target port: 01b */
409 buf[off] |= 0x10; 409 buf[off] |= 0x10;
410 /* DESIGNATOR TYPE == SCSI name string */ 410 /* DESIGNATOR TYPE == SCSI name string */
411 buf[off++] |= 0x8; 411 buf[off++] |= 0x8;
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c
index a92176d2e187..b2575d8568cc 100644
--- a/drivers/target/target_core_configfs.c
+++ b/drivers/target/target_core_configfs.c
@@ -975,7 +975,7 @@ static ssize_t target_core_dev_wwn_show_attr_##_name( \
975} 975}
976 976
977/* 977/*
978 * VPD page 0x83 Assoication: Logical Unit 978 * VPD page 0x83 Association: Logical Unit
979 */ 979 */
980DEF_DEV_WWN_ASSOC_SHOW(vpd_assoc_logical_unit, 0x00); 980DEF_DEV_WWN_ASSOC_SHOW(vpd_assoc_logical_unit, 0x00);
981 981