Project

General

Profile

Bug #1021

STMF_IOCTL_GET_{LU,TARGET_PORT}_PROPERTIES and STMF_IOCTL_SESSION_LIST cut aliases down to 255 bytes

Added by Yuri Pankov over 9 years ago. Updated over 8 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
comstar - iSCSI/FC/SAS target
Start date:
2011-05-11
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

uts/common/io/comstar/stmf/stmf.c:

[...]
                        if (iss->iss_ss->ss_rport_alias) {
                                (void) strncpy(iss_list[i].alias,
                                    iss->iss_ss->ss_rport_alias, 255);
[...]
                if (ilu->ilu_lu->lu_alias) {
                        (void) strncpy(lup->lu_alias,
                            ilu->ilu_lu->lu_alias, 255);
[...]
                if (ilport->ilport_lport->lport_alias) {
                        (void) strncpy(lportp->tgt_alias,
                            ilport->ilport_lport->lport_alias, 255);

I'm not actually sure about LU aliases - they aren't described anywhere, but making them the same as others (UTF-8 encoded string with maximum length of 255) wouldn't hurt.

History

#1

Updated by Yuri Pankov over 8 years ago

  • Assignee deleted (Yuri Pankov)

Also available in: Atom PDF