From 5992173f13550d75659fec1d7e1f6e87895d560a Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Wed, 11 Sep 2013 23:59:31 -0700 Subject: [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//ethernetN/targetN info from the boot context to the node_rec. Signed-off-by: Eddie Wai --- include/fw_context.h | 3 +++ include/iscsi_proto.h | 1 + 2 files changed, 4 insertions(+) (limited to 'include') 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 -- cgit v1.2.1