summaryrefslogtreecommitdiff
path: root/doc/iscsi-gen-initiatorname.8.template
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2022-04-10 07:54:41 -0700
committerGitHub <noreply@github.com>2022-04-10 07:54:41 -0700
commitd169831fd5c5afa9c3f5c0b17789791dfcea5208 (patch)
treeefa94d391675800887c85247e9f66908b2dae382 /doc/iscsi-gen-initiatorname.8.template
parent1451108792c1187974b87399f71822b59d62948c (diff)
parente1c491d59ffaeac367966b703f91eab4972a54f6 (diff)
downloadopen-iscsi-d169831fd5c5afa9c3f5c0b17789791dfcea5208.tar.gz
Merge pull request #336 from gonzoleeman/use-kernel-initiatorname-if-present
Use kernel initiatorname if present
Diffstat (limited to 'doc/iscsi-gen-initiatorname.8.template')
-rw-r--r--doc/iscsi-gen-initiatorname.8.template25
1 files changed, 20 insertions, 5 deletions
diff --git a/doc/iscsi-gen-initiatorname.8.template b/doc/iscsi-gen-initiatorname.8.template
index e10a4ac..97a6e21 100644
--- a/doc/iscsi-gen-initiatorname.8.template
+++ b/doc/iscsi-gen-initiatorname.8.template
@@ -1,4 +1,4 @@
-.TH ISCSI_GEN_INITIATORNAME 8 "Dec 2021" "" "Linux Administrator's Manual"
+.TH ISCSI_GEN_INITIATORNAME 8 "APR 2022" "" "Linux Administrator's Manual"
.SH NAME
iscsi-gen-initiatorname \- smart iSCSI initiator name generation tool
.SH SYNOPSIS
@@ -6,11 +6,26 @@ iscsi-gen-initiatorname \- smart iSCSI initiator name generation tool
[OPTIONS]
.SH "DESCRIPTION"
.B iscsi-gen-initiatorname
-generates a unique iSCSI node name on every invocation. If
-iBFT is in use, the iBFT-registered initiator name will be used.
+generates an iSCSI Initiator Name in the
+.I initiatorname.iscsi
+file. It is an error to try to overwrite an existing Initiator Name,
+unless the \fB-f\fP (\fIforce\fR) option is supplied.
.P
-If there is an existing initiator name, it will not be overwritten
-unless the \fB-f\fP option is supplied.
+The Initiator Name will be taken from the kernel command line,
+if present (from the \fIrd.initiatorname\fR parameter), else from
+the iBFT subsystem (if present in \fIsysfs\fR), else it will be
+generated using the \fBiscsi-iname\fR command.
+.P
+It is an error if both the kernel command-line Initiator Name
+and the iBFT Initiator Name are both set, and they are different.
+it is also an error to try to write over an Initiator Name file
+if it read-only, or to create one if its directory is not writable.
+.P
+You
+.B must
+be
+.I root
+to run this command.
.SH OPTIONS
.TP
.BI [-h]