Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/utsname.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/namei.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/unistd.h>
#include <linux/string.h>
#include <linux/syscalls.h>
#include <linux/configfs.h>
#include <target/target_core_base.h>
#include <target/target_core_fabric.h>
#include <target/target_core_fabric_configfs.h>
#include <target/target_core_configfs.h>
#include <target/configfs_macros.h>
#include "target_core_internal.h"
#include "target_core_alua.h"
#include "target_core_pr.h"
Go to the source code of this file.
Macros | |
#define | TF_CIT_SETUP(_name, _item_ops, _group_ops, _attrs) |
#define | TCM_MAPPEDLUN_ATTR(_name, _mode) |
#define | TCM_PORT_ATTR(_name, _mode) |
#define | TCM_PORT_ATTOR_RO(_name) |
Functions | |
CONFIGFS_EATTR_STRUCT (target_fabric_mappedlun, se_lun_acl) | |
TCM_MAPPEDLUN_ATTR (write_protect, S_IRUGO|S_IWUSR) | |
CONFIGFS_EATTR_OPS (target_fabric_mappedlun, se_lun_acl, se_lun_group) | |
TF_CIT_SETUP (tpg_mappedlun,&target_fabric_mappedlun_item_ops, NULL, target_fabric_mappedlun_attrs) | |
TF_CIT_SETUP (tpg_mappedlun_stat, NULL,&target_fabric_mappedlun_stat_group_ops, NULL) | |
CONFIGFS_EATTR_OPS (target_fabric_nacl_attrib, se_node_acl, acl_attrib_group) | |
TF_CIT_SETUP (tpg_nacl_attrib,&target_fabric_nacl_attrib_item_ops, NULL, NULL) | |
CONFIGFS_EATTR_OPS (target_fabric_nacl_auth, se_node_acl, acl_auth_group) | |
TF_CIT_SETUP (tpg_nacl_auth,&target_fabric_nacl_auth_item_ops, NULL, NULL) | |
CONFIGFS_EATTR_OPS (target_fabric_nacl_param, se_node_acl, acl_param_group) | |
TF_CIT_SETUP (tpg_nacl_param,&target_fabric_nacl_param_item_ops, NULL, NULL) | |
CONFIGFS_EATTR_OPS (target_fabric_nacl_base, se_node_acl, acl_group) | |
TF_CIT_SETUP (tpg_nacl_base,&target_fabric_nacl_base_item_ops,&target_fabric_nacl_base_group_ops, NULL) | |
TF_CIT_SETUP (tpg_nacl_stat, NULL, NULL, NULL) | |
TF_CIT_SETUP (tpg_nacl, NULL,&target_fabric_nacl_group_ops, NULL) | |
CONFIGFS_EATTR_OPS (target_fabric_np_base, se_tpg_np, tpg_np_group) | |
TF_CIT_SETUP (tpg_np_base,&target_fabric_np_base_item_ops, NULL, NULL) | |
TF_CIT_SETUP (tpg_np, NULL,&target_fabric_np_group_ops, NULL) | |
CONFIGFS_EATTR_STRUCT (target_fabric_port, se_lun) | |
TCM_PORT_ATTR (alua_tg_pt_gp, S_IRUGO|S_IWUSR) | |
TCM_PORT_ATTR (alua_tg_pt_offline, S_IRUGO|S_IWUSR) | |
TCM_PORT_ATTR (alua_tg_pt_status, S_IRUGO|S_IWUSR) | |
TCM_PORT_ATTR (alua_tg_pt_write_md, S_IRUGO|S_IWUSR) | |
CONFIGFS_EATTR_OPS (target_fabric_port, se_lun, lun_group) | |
TF_CIT_SETUP (tpg_port,&target_fabric_port_item_ops, NULL, target_fabric_port_attrs) | |
TF_CIT_SETUP (tpg_port_stat, NULL,&target_fabric_port_stat_group_ops, NULL) | |
TF_CIT_SETUP (tpg_lun, NULL,&target_fabric_lun_group_ops, NULL) | |
CONFIGFS_EATTR_OPS (target_fabric_tpg_attrib, se_portal_group, tpg_attrib_group) | |
TF_CIT_SETUP (tpg_attrib,&target_fabric_tpg_attrib_item_ops, NULL, NULL) | |
CONFIGFS_EATTR_OPS (target_fabric_tpg_param, se_portal_group, tpg_param_group) | |
TF_CIT_SETUP (tpg_param,&target_fabric_tpg_param_item_ops, NULL, NULL) | |
CONFIGFS_EATTR_OPS (target_fabric_tpg, se_portal_group, tpg_group) | |
TF_CIT_SETUP (tpg_base,&target_fabric_tpg_base_item_ops, NULL, NULL) | |
TF_CIT_SETUP (tpg,&target_fabric_tpg_item_ops,&target_fabric_tpg_group_ops, NULL) | |
TF_CIT_SETUP (wwn_fabric_stats, NULL, NULL, NULL) | |
CONFIGFS_EATTR_OPS (target_fabric_wwn, target_fabric_configfs, tf_group) | |
TF_CIT_SETUP (wwn,&target_fabric_wwn_item_ops,&target_fabric_wwn_group_ops, NULL) | |
CONFIGFS_EATTR_OPS (target_fabric_discovery, target_fabric_configfs, tf_disc_group) | |
TF_CIT_SETUP (discovery,&target_fabric_discovery_item_ops, NULL, NULL) | |
int | target_fabric_setup_cits (struct target_fabric_configfs *tf) |
#define TCM_MAPPEDLUN_ATTR | ( | _name, | |
_mode | |||
) |
Definition at line 155 of file target_core_fabric_configfs.c.
#define TCM_PORT_ATTOR_RO | ( | _name | ) |
Definition at line 613 of file target_core_fabric_configfs.c.
#define TCM_PORT_ATTR | ( | _name, | |
_mode | |||
) |
Definition at line 607 of file target_core_fabric_configfs.c.
#define TF_CIT_SETUP | ( | _name, | |
_item_ops, | |||
_group_ops, | |||
_attrs | |||
) |
Definition at line 47 of file target_core_fabric_configfs.c.
CONFIGFS_EATTR_OPS | ( | target_fabric_mappedlun | , |
se_lun_acl | , | ||
se_lun_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_fabric_nacl_attrib | , |
se_node_acl | , | ||
acl_attrib_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_fabric_nacl_auth | , |
se_node_acl | , | ||
acl_auth_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_fabric_nacl_param | , |
se_node_acl | , | ||
acl_param_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_fabric_nacl_base | , |
se_node_acl | , | ||
acl_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_fabric_np_base | , |
se_tpg_np | , | ||
tpg_np_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_fabric_port | , |
se_lun | , | ||
lun_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_fabric_tpg_attrib | , |
se_portal_group | , | ||
tpg_attrib_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_fabric_tpg_param | , |
se_portal_group | , | ||
tpg_param_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_fabric_tpg | , |
se_portal_group | , | ||
tpg_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_fabric_wwn | , |
target_fabric_configfs | , | ||
tf_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_fabric_discovery | , |
target_fabric_configfs | , | ||
tf_disc_group | |||
) |
CONFIGFS_EATTR_STRUCT | ( | target_fabric_mappedlun | , |
se_lun_acl | |||
) |
CONFIGFS_EATTR_STRUCT | ( | target_fabric_port | , |
se_lun | |||
) |
int target_fabric_setup_cits | ( | struct target_fabric_configfs * | tf | ) |
Definition at line 1178 of file target_core_fabric_configfs.c.
TCM_MAPPEDLUN_ATTR | ( | write_protect | , |
S_IRUGO| | S_IWUSR | ||
) |
TCM_PORT_ATTR | ( | alua_tg_pt_gp | , |
S_IRUGO| | S_IWUSR | ||
) |
TCM_PORT_ATTR | ( | alua_tg_pt_offline | , |
S_IRUGO| | S_IWUSR | ||
) |
TCM_PORT_ATTR | ( | alua_tg_pt_status | , |
S_IRUGO| | S_IWUSR | ||
) |
TCM_PORT_ATTR | ( | alua_tg_pt_write_md | , |
S_IRUGO| | S_IWUSR | ||
) |
TF_CIT_SETUP | ( | tpg_mappedlun | , |
& | target_fabric_mappedlun_item_ops, | ||
NULL | , | ||
target_fabric_mappedlun_attrs | |||
) |
TF_CIT_SETUP | ( | tpg_nacl_base | , |
& | target_fabric_nacl_base_item_ops, | ||
& | target_fabric_nacl_base_group_ops, | ||
NULL | |||
) |
TF_CIT_SETUP | ( | tpg_port | , |
& | target_fabric_port_item_ops, | ||
NULL | , | ||
target_fabric_port_attrs | |||
) |
TF_CIT_SETUP | ( | tpg | , |
& | target_fabric_tpg_item_ops, | ||
& | target_fabric_tpg_group_ops, | ||
NULL | |||
) |
TF_CIT_SETUP | ( | wwn | , |
& | target_fabric_wwn_item_ops, | ||
& | target_fabric_wwn_group_ops, | ||
NULL | |||
) |