diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2013-09-11 23:59:31 -0700 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2013-09-11 23:59:31 -0700 |
commit | 5992173f13550d75659fec1d7e1f6e87895d560a (patch) | |
tree | 4f44e7085f289030d7acfd36e1989fb78ff08472 /include | |
parent | 82c853344888c2d541d6445a08ab31cbcf1c140f (diff) | |
download | open-iscsi-5992173f13550d75659fec1d7e1f6e87895d560a.tar.gz |
[PATCH v5 1/3] ISCSISTART: Saved ibft boot info to the session
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/fw_context.h | 3 | ||||
-rw-r--r-- | include/iscsi_proto.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/fw_context.h b/include/fw_context.h index 1640859..6563d68 100644 --- a/include/fw_context.h +++ b/include/fw_context.h @@ -30,6 +30,9 @@ struct boot_context { struct list_head list; + char boot_root[BOOT_NAME_MAXLEN]; + char boot_nic[BOOT_NAME_MAXLEN]; + char boot_target[BOOT_NAME_MAXLEN]; /* target settings */ int target_port; diff --git a/include/iscsi_proto.h b/include/iscsi_proto.h index 1c69feb..56f757b 100644 --- a/include/iscsi_proto.h +++ b/include/iscsi_proto.h @@ -619,6 +619,7 @@ struct iscsi_reject { #define KEY_MAXLEN 64 #define VALUE_MAXLEN 255 #define TARGET_NAME_MAXLEN VALUE_MAXLEN +#define BOOT_NAME_MAXLEN 256 #define ISCSI_DEF_MAX_RECV_SEG_LEN 8192 #define ISCSI_MIN_MAX_RECV_SEG_LEN 512 |