History

target: Add se_portal_group->tpg_auth_group

This patch adds an optional /auth/ configfs group to TPG context that can be used by fabrics like iscsi-target for TPG demo-mode authentication.

Nicholas Bellinger committed 13 years ago

Commit e4b512e1 parent 66658894 files · +33 −3Browse files

Showing the changes to include/target (3 of 4 files). Show all

Unified · Split

3 files
  1. include/target/target_core_base.h +2 −1
  2. include/target/target_core_configfs.h +1 −0
  3. include/target/target_core_fabric_configfs.h +11 −0
include/target/target_core_base.h+2−1
@@ -795,11 +795,12 @@ struct se_portal_group { · 794 unmodified lines
795 struct target_core_fabric_ops *se_tpg_tfo;795 struct target_core_fabric_ops *se_tpg_tfo;
796 struct se_wwn *se_tpg_wwn;796 struct se_wwn *se_tpg_wwn;
797 struct config_group tpg_group;797 struct config_group tpg_group;
798 struct config_group *tpg_default_groups[6];798 struct config_group *tpg_default_groups[7];
799 struct config_group tpg_lun_group;799 struct config_group tpg_lun_group;
800 struct config_group tpg_np_group;800 struct config_group tpg_np_group;
801 struct config_group tpg_acl_group;801 struct config_group tpg_acl_group;
802 struct config_group tpg_attrib_group;802 struct config_group tpg_attrib_group;
803 struct config_group tpg_auth_group;
803 struct config_group tpg_param_group;804 struct config_group tpg_param_group;
804};805};
805 806
include/target/target_core_configfs.h+1−0
@@ -23,6 +23,7 @@ struct target_fabric_configfs_template { · 22 unmodified lines
23 struct config_item_type tfc_tpg_np_cit;23 struct config_item_type tfc_tpg_np_cit;
24 struct config_item_type tfc_tpg_np_base_cit;24 struct config_item_type tfc_tpg_np_base_cit;
25 struct config_item_type tfc_tpg_attrib_cit;25 struct config_item_type tfc_tpg_attrib_cit;
26 struct config_item_type tfc_tpg_auth_cit;
26 struct config_item_type tfc_tpg_param_cit;27 struct config_item_type tfc_tpg_param_cit;
27 struct config_item_type tfc_tpg_nacl_cit;28 struct config_item_type tfc_tpg_nacl_cit;
28 struct config_item_type tfc_tpg_nacl_base_cit;29 struct config_item_type tfc_tpg_nacl_base_cit;
include/target/target_core_fabric_configfs.h+11−0
@@ -62,6 +62,17 @@ static struct target_fabric_tpg_attrib_attribute _fabric##_tpg_attrib_##_name = · 61 unmodified lines
62 _fabric##_tpg_attrib_show_##_name, \62 _fabric##_tpg_attrib_show_##_name, \
63 _fabric##_tpg_attrib_store_##_name);63 _fabric##_tpg_attrib_store_##_name);
64 64
65CONFIGFS_EATTR_STRUCT(target_fabric_tpg_auth, se_portal_group);
66#define TF_TPG_AUTH_ATTR(_fabric, _name, _mode) \
67static struct target_fabric_tpg_auth_attribute _fabric##_tpg_auth_##_name = \
68 __CONFIGFS_EATTR(_name, _mode, \
69 _fabric##_tpg_auth_show_##_name, \
70 _fabric##_tpg_auth_store_##_name);
71
72#define TF_TPG_AUTH_ATTR_RO(_fabric, _name) \
73static struct target_fabric_tpg_auth_attribute _fabric##_tpg_auth_##_name = \
74 __CONFIGFS_EATTR_RO(_name, \
75 _fabric##_tpg_auth_show_##_name);
65 76
66CONFIGFS_EATTR_STRUCT(target_fabric_tpg_param, se_portal_group);77CONFIGFS_EATTR_STRUCT(target_fabric_tpg_param, se_portal_group);
67#define TF_TPG_PARAM_ATTR(_fabric, _name, _mode) \78#define TF_TPG_PARAM_ATTR(_fabric, _name, _mode) \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t