| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This patch modifies the open-iscsi Makefile to include the compilation,
binary/manpage install, and clean of the iscsiuio source.
Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
|
|
|
|
|
|
|
|
| |
We only need to run configure in open-isns if either the
configure script or Makefile.in has changed. Otherwise
it's perfectly okay just to call a plain 'make' here.
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With stable kernels and the iscsi kernel modules stablizing, there is
less of a need to distribute kernel modules with the tarball. I also
do not have time to update and maintain ports of the modules for
so many kernels. So this patch changes the build default behavior.
Running "make" use to build the kernel modules and tools. Now, it
will only create the tools. "make install" used to install the
tools and kernel modules and now it only installs the tools.
I am not removing the kernel modules, but I will not be updating them
anymore. They will remain for users of very old kernels. To build
you now need to do
and to install do
|
|
|
|
|
|
| |
For discovery we do not use the isns dsa code but
still build against libcrypto. This disables the code
until we add support.
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
When doing a make notify user that iscsistart was built.
|
|
|
|
|
| |
We messed up strncat in so many different ways that strlat could
fix. This patch converts the userspace uses of strncat to strlcat.
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
from Albert:
Need some ;\ to break up lines.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@774 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@761 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@760 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@716 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@715 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@677 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@664 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
|
|
| |
to /sbin instead of /user/sbin
git-svn-id: svn://svn.berlios.de/open-iscsi@602 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@582 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
|
|
| |
functions
git-svn-id: svn://svn.berlios.de/open-iscsi@526 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@431 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@396 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
|
|
|
| |
run and tabing
git-svn-id: svn://svn.berlios.de/open-iscsi@322 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@309 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@264 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@101 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
|
|
| |
git-svn-id: svn://svn.berlios.de/open-iscsi@86 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|
|
git-svn-id: svn://svn.berlios.de/open-iscsi@1 d7303112-9cec-0310-bdd2-e83a94d6c2b6
|