| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Patch and description from Eddie Wai:
Three new session sysfs parameters are introduced:
boot_root - holds the ibft boot root folder name
boot_nic - holds the ibft boot ethernetN name
boot_target - holds the ibft boot targetN name
This patch copies over the /sys/firmware/<boot_root>/ethernetN/targetN
info
from the boot context to the node_rec.
Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
|
|
|
|
|
|
|
| |
The address buffers are too short for many ipv6 addresses
and if ibft/firmware gives us a hostname. As a result iscsistart
and iscsiadm were printing/getting a truncated address which
would cause login and network startup to fail.
|
|
|
|
|
|
| |
This patch modifies the ibft sysfs code to support the
iscsi boot sysfs module which is used by be2iscsi to
export be2iscsi boot info.
|
|
|
|
| |
This just mvs setup_nics to fw_entry.c so iscsiadm can use it.
|
|
|
|
| |
fw_get_entry's filepath is always NULL, so this patch removes it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
firmware
This adds the ibft sysfs module (iscsi_ibft) parsing support. It
was original done by Konard, but I have ported it to use the
sysfs.c helpers (add new ones and ported iscsi_sysfs.c too).
This patch also modifies iscsistart and iscsiadm to print/log
into all the portals found in firmware.
It also changes the behavior of
iscsiadm -m discovery -t fw
so that we create db records for what is found. It is not
fully hooked into the iface code, so it will use the
different inititor name, but it will not create a iface for
it (this means that if you have a record for the same portal that
is bound to a iface with a iname you can run into problems).
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|