open-isns: move config.h include

config.h should be included first, as it will influence the
contents of other header files.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Remove unused variable 'type' in insnsadm
open-isns: add 'all' as valid option for debugging

Add option 'all' for debugging so we don't have to remember all
possible debugging options.

Signed-off-by: Hannes Reinecke <hare@suse.de>
isnsadm: Allow server to be specified

Instead of requiring a configuration file we should be allowing
the server to be specified on the commandline.

Signed-off-by: Hannes Reinecke <hare@suse.de>
open-isns: Make default IQN prefix configurable

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 <hare@suse.de>
open-isns: Implement 'IQNPrefix' configuration setting

Instead of having the IQN prefix hardcoded in the program
we should provide for a configuration setting 'IQNPrefix'.

Signed-off-by: Hannes Reinecke <hare@suse.de>
open-isns: Read source name from /etc/iscsi/initiatorname.iscsi

If no source name has been specified in the config file (or no
config file is present) we should be falling back to read the
InitiatorName from /etc/iscsi/initiatorname.iscsi.
After all, the initiator name is supposed to be unique per
machine.

Signed-off-by: Hannes Reinecke <hare@suse.de>
open-isns: systemd integration

Implement code to fetch sockets from systemd, and add socket
and service files.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Using INSTALL Macro in Makefile
fixing configure warning: not using datarootdir
Ignoring dot-o files
Use DESTDIR instead of INSTALL_ROOT in Makefile
Support install of systemd files