Skip to content

bugfix: error when auto-generate IQN based on hostname including '_'#12

Open
ls-zhu wants to merge 1 commit intoDatera:masterfrom
ls-zhu:master
Open

bugfix: error when auto-generate IQN based on hostname including '_'#12
ls-zhu wants to merge 1 commit intoDatera:masterfrom
ls-zhu:master

Conversation

@ls-zhu
Copy link
Copy Markdown

@ls-zhu ls-zhu commented Jan 12, 2016

Hi,
This patch can fix a bug : we will see a failure when try to create a IQN automaticly based on host name including "_":

izhu@Leap_Targetcli3:~/workspace/rtslib> hostname
Leap_Targetcli3

(1) auto-generate case based on my hostname "Leap_Targetcli3" which include a "_"
/> iscsi/ create
Created target iqn.2003-01.org.linux-iscsi.leap-targetcli3.x8664:sn.e7d6f4c4faf6.
Selected TPG Tag 1.
Created TPG 1.

(2) specify a iqn name includes a "_"

/> iscsi/ create iqn.2016-01.suse.com_aa_bb_cc
Created target iqn.2016-01.suse.com-aa-bb-cc.
Selected TPG Tag 1.
Created TPG 1.
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant