Oren
unread,Nov 8, 2009, 6:42:35 PM11/8/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open-iscsi
Hello,
I've encountered too many cases of people thinking the iscsi-iname
command, just like ifconfig, displays the currently configured IQN,
not being aware that, in fact, it generates a new IQN.
The man page (Debian-supplied, not in open-iscsi git) describes it
best, but the --help string is absolutely misleading or even wrong.
Here's my patch, that changes the wording to something similar to the
Debian's man page:
diff --git a/utils/iscsi-iname.c b/utils/iscsi-iname.c
index 7cf0e7a..80fc1d1 100644
--- a/utils/iscsi-iname.c
+++ b/utils/iscsi-iname.c
@@ -62,7 +62,7 @@ main(int argc, char *argv[])
prefix = argv[1];
if (( strcmp(prefix, "-h") == 0 ) ||
( strcmp(prefix, "--help") == 0 )) {
- printf("\nDisplays the iSCSI initiator name
\n");
+ printf("\nGenerates a unique iSCSI node name
on every invocation\n"
exit(0);
} else if ( strcmp(prefix, "-p") == 0 ) {
prefix = argv[2];
Best Regards,
Oren Held
Host-side development
IBM-XIV Storage