summaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Fix makefile cleanupMike Christie2010-03-221-1/+2
| | | | | | | Mv isns cleanup to last step incase it has not been built. It will then not stop the makefile from other processing. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
* iscsi tools: use open-isns servicesMike Christie2010-03-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the native isns code with open-isns's libisns. I included the open-isns code in the open-iscsi tarball to make distribution easier since some distros use different isns clients and may not want to carry open-isns. This is based on open-isns commit 5e09f36d3446e41de0b8361601ffec4cd140d513. Changes in iSNS behavior/use: - To do discovery you must pass the ip and optionally the port to iscsiadm: iscsiadm -m discovery -t st -p 10.15.0.9 This command accepts the same ops as sendtargets so you can add/remove/update the node records that are created. It also supports ifaces properly now. - isns.address and isns.port in iscsid.conf are no longer used. - ESI is temporarily not supported. This will be fixed in the next patch when SCNs support is added. - The iscsiadm isns discovery command is not marked as stable. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
* Use DESTDIR when generating an InitiatorName.Wulf C. Krueger2010-01-061-2/+2
| | | | | | | For packaging, it's very useful to to check for /etc/iscsi/initiatorname.iscsi in the real filesystem but if we have to generate a new one, this should be done inside DESTDIR and not in the real filesystem as we might be in a sandboxed environment without being able to write anywhere else.
* iscsi tool make: add notification that iscsi start was madeMike Christie2009-02-071-0/+1
| | | | When doing a make notify user that iscsistart was built.
* iscsi tools: convert from strncat to strlcatMike Christie2009-02-071-0/+2
| | | | | We messed up strncat in so many different ways that strlat could fix. This patch converts the userspace uses of strncat to strlcat.
* open-iscsi: Makefile: separate out user: and kernel: make targetsBoaz Harrosh2009-02-071-11/+14
| | | | | | | | Separate out the build of "kernel:" and "user:" targets. [Mike please revisit the @echo output if we need anything added] Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
* build: add a make userMike Christie2009-01-231-9/+15
| | | | | | | | | | | | | Users may want to install the userspace tools but use the distro kernel modules. This adds a make user to build the userspace tools. And it adds a make user_install to install the userspace tools.
* Update SUSE init scriptsHannes Reinecke2008-04-091-0/+2
| | | | | | | | | These are some updates to the SUSE init scripts, plus a new boot.open-iscsi script for SUSE. The latter is used for root on iscsi, to start iscsid as early as possible to avoid deadlocks on the root fs. Signed-off-by: Hannes Reinecke <hare@suse.de>
* fix up Makefile install_etc fixMike Christie2007-12-141-2/+2
| | | | | | from Albert: Need some ;\ to break up lines.
* Makefile patch, don't overwrite iscsid.conf when re-installingMike Christie2007-12-141-2/+4
| | | | | | | | | | | from Albert Pauw: After a git update I reinstall open-iscsi, unfortunately everytime the iscsid.conf file gets overwritten with the standard one. So I made this patch which doesn't overwrite it, if it exists. This way I don't have to remember to re-edit it (e.g. isns server settings). Albert
* add ppc fwparam supportMike Christie2007-08-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IIs it flora or fauna? network or disk? BIOS or OFW? :) Here is another stab at providing the ppc64 equivalent of the xseries iSCSI Boot Firmware Tables functionality in open-iscsi. When booting from the firmware initiator, the parameters flow up from the running system v. from the values stored in the OS image. We have to manage the transition from kernel running from the disk obtained from a network device before the normal setup info is available. The trick is getting the pertinent data out of the "hardware", then passing this info to the tools running on the OS instance. On certain pseries boxen the system OFW has an initiator. This mini-initiator will only use a single target. It does not use the multiple initiator list like on xseries. You can only boot from a single target. You can have multiple different targets defined, but only one may be active at a time. That being said, only nics that support the load method qualify as iSCSI bootable devices on pseries. This does restrict the devices on this platform to those that support FCODE. "Features" of the implementation: - has all the information about the nic in use; address, netmask, mac addr, the initiatorname, port, etc., before _anything_ is run from the FS save the booted kernel. - Reads the /proc/device-tree for ppc related device information. - for retrieving the bootable device, uses the /chosen/bootpath property. - for display purposes, keys off the /aliases property "iscsi-disk*" to determine the bootable disks. - uses the device ordering from firmware (hence the kernel ordering) to determine the interface names at boot time. The interfaces names can and do get munged later by runtime tools, re-ordering the names.
* Finish hooking into toolMike Christie2007-07-251-2/+1
| | | | | | | | | | | Instead of having each parser print its output, make it common in fw_entry.c and make that use the same format and fields as the rest of the tools. Kept the ibft dump code, because it may be use for compat tools for suse. Let me know and I can help on that if you need it. With the hook in though the format for ibft is the same as normal iscsiadm node info so you can just reuse your parsing login for that.
* hook fw programs into iscsi toolsMike Christie2007-07-251-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch hooks ibft into iscsiadm and iscsistart. Why do this? It seems easier to be able to just run the same tool we use for normal login. For example in the installer or initramfs we can do this: // This will check for fw crap and if found // log into targets that are found // returns 0 on success and non zero if // there was no fw crap or we could not log // in or some other error. // This will _not_ store any record (text files // with data in it) in /var/lib/iscsi. // It is completely dynamic in that regard. ret = iscsiadm -m discovery -t fwboot -l (fwboot - is a new discovery type I added which is for this fw crap). // For normal iscsi install we can then do: ret = iscsiadm -m discovery -t st -p ip:port -l // This will do discovery to the portal at // ip:port, and now the code supports the -l on discovery, // so it will also log into all the targets found // automagically for the caller. // This will store records (text files with target data in it) // like usual to /var/lib/iscsi. To setup the initramfs then, we just need some variable that tells us if we are doing the fw boot or the pxe net iscsi boot. This could be done by checking iscsiadm or iscsistart like so: ret = iscsiadm -m discovery -t fwboot // no login/-l command this time if ret indicates success, then setup initramfs for dynamic fwboot else do the normal pxe static iscsi root stuff we did. In the initrams fs if using iscsistart we would just do (if this got setup for fw dynamic boot) or it would end up as And if using iscsiadm in the initramfs you can just do iscsiadm -m discovery -t fwboot -l The patch was made using Prasana and Doug's code. I have not tested it. I do not have the hardware handy (no intel card and I got stuck looking for a ppc box with it).
* Fix fwparam_ibft compilation with older gccsMike Christie2007-06-291-0/+5
| | | | | | | | | From: Olaf Kirch <olaf.kirch@oracle.com> Add a "make depend" rule to all Makefiles building user space apps. Signed-off-by: olaf.kirch@oracle.com
* add make install_usrMike Christie2007-06-221-0/+3
| | | | | | | If we run against the git or upstream kernel we will not want to install the user tools and kernel modules. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
* Support bind by hw address or netdev (ip address is temp disabled because ↵mnc2007-05-301-2/+7
| | | | | | targets are not handling it well) and use the iface argument instead of the actual values git-svn-id: svn://svn.berlios.de/open-iscsi@845 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* add some code to create default initiator namemnc2007-02-211-3/+14
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@774 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* compile fwparam and install to sbinmnc2007-01-121-1/+5
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@761 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* drop make utils until andmike sends somethingmnc2007-01-121-2/+0
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@760 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* from Mike Anderson: This patch series adds a command (fwparam_ibft) to the ↵mnc2007-01-101-0/+2
| | | | | | open-iscsi util directory. The fwparam_ibft command can be used to obtain iSCSI boot information from a IBM blade's system BIOS. Signed-off-by: Mike Anderson <andmike@us.ibm.com> git-svn-id: svn://svn.berlios.de/open-iscsi@756 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* from albert: minor fix to last patchmnc2006-10-231-1/+1
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@716 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* from pauw@o2.ie: install iscsi_discovery manpagemnc2006-10-231-1/+1
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@715 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* from Alber: fix make file install error with iscsi.conf filemnc2006-08-281-3/+3
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@677 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* update makefilemnc2006-08-231-1/+1
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@664 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* from robbat2@gentoo.org and lists@norrbring.se: iscsi programs get insalled ↵mnc2006-06-131-1/+1
| | | | | | to /sbin instead of /user/sbin git-svn-id: svn://svn.berlios.de/open-iscsi@602 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* from danb@voltaire.com: add iscsi discovery scriptmnc2006-05-271-1/+1
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@582 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* add libiscsi: move duplicated code in iscsi_iser and iscsi_tcp to new lib ↵mnc2006-04-021-0/+1
| | | | | | functions git-svn-id: svn://svn.berlios.de/open-iscsi@526 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* from Robin H. Johnson: overhauls the open-iscsi build system. Install ↵mnc2006-02-011-12/+75
| | | | | | support for easy installation. DESTDIR support for easy packaging. Revamps kernel/Makefile to use KBuild for clean and install. Refactor iscsi_compat checks to reduce bloat. Update usr/Makefile to keep in sync with kernel/Makefile. Split CFLAGS work in CFLAGS/OPTFLAGS/WARNFLAGS. Ensure Kbuild executes in parallel if needed. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> git-svn-id: svn://svn.berlios.de/open-iscsi@483 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* Albert Pauw: added install option (redhat, debian)aaizman2005-10-261-0/+12
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@431 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* Ming: spelling fixdmitry_yus2005-08-141-1/+1
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@396 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* Mike: fixed some weird braces where locks would never get dropped ifdmitry_yus2005-05-211-1/+1
| | | | | | | run and tabing git-svn-id: svn://svn.berlios.de/open-iscsi@322 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* misleading printout in top-level Makefile fixeddmitry_yus2005-05-181-1/+1
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@309 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* initial freebsd user-space supportdmitry_yus2005-05-021-1/+1
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@264 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* x86_64 compil. fixesopen-iscsi2005-02-231-3/+4
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@101 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* top level makefile cleanupopen-iscsi2005-02-181-12/+13
| | | | git-svn-id: svn://svn.berlios.de/open-iscsi@86 d7303112-9cec-0310-bdd2-e83a94d6c2b6
* initial commitopen-iscsi2005-01-011-0/+18
git-svn-id: svn://svn.berlios.de/open-iscsi@1 d7303112-9cec-0310-bdd2-e83a94d6c2b6