On Sunday, November 16, 2014 11:11:59 PM UTC-8, Uli wrote: > > Hi! > > I don't have the full context: Why is a IQNPREFIX necessary at all? It > mean that there are incomplete IQNs somewhere? >
It is used to created the "SourceName" if not specified. This name is (usually) an IQN identifying the source system. If not supplied, it is built from this prefix and the host system name. With the patches from Hannes, it is taken from /etc/iscsi/initiatorname.iscsi before being constructed (if needed). > Regards, > Ulrich > > >>> Lee Duncan <[email protected] <javascript:>> schrieb am 15.11.2014 > um 02:15 in > Nachricht <[email protected] > <javascript:>>: > > From: Hannes Reinecke <[email protected] <javascript:>> > > > > This patch makes the default IQN prefix for iSNS configurable > > at compile-time. > > > > It can be modified by setting > > 'IQNFLAGS = -DIQNPREFIX=\"iqn.YYYY-MM\"' > > when calling 'make'. > > > > Signed-off-by: Hannes Reinecke <[email protected] <javascript:>> > > --- > > utils/open-isns/Makefile.in | 3 +++ > > utils/open-isns/message.c | 4 ++++ > > 2 files changed, 7 insertions(+) > > > > diff --git a/utils/open-isns/Makefile.in b/utils/open-isns/Makefile.in > > index cb721f2b990a..46d2723739d0 100644 > > --- a/utils/open-isns/Makefile.in > > +++ b/utils/open-isns/Makefile.in > > @@ -83,6 +83,9 @@ distclean:: > > rm -f config.h Makefile config.status config.log > > rm -rf autom4te.cache > > > > +message.o: message.c > > + gcc $(CFLAGS) $(CPPFLAGS) $(IQNFLAGS) -c -o $@ message.c > > + > > $(LIB): $(LIBOBJS) > > ar cr $@ $(LIBOBJS) > > > > diff --git a/utils/open-isns/message.c b/utils/open-isns/message.c > > index 4cd40c3e4d3a..db67a2cc1e15 100644 > > --- a/utils/open-isns/message.c > > +++ b/utils/open-isns/message.c > > @@ -27,7 +27,11 @@ > > * we fake it by assigning a date before the > > * dawn of time. > > */ > > +#ifndef IQNPREFIX > > #define DUMMY_IQN_PREFIX "iqn.1967-12." > > +#else > > +#define DUMMY_IQN_PREFIX IQNPREFIX > > +#endif > > > > static uint32_t isns_xid = 1; > > > > -- > > 2.1.2 > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "open-iscsi" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > Visit this group at http://groups.google.com/group/open-iscsi. > > For more options, visit https://groups.google.com/d/optout. > > > > > -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/d/optout.
