From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: "Linux-iSCSI.org Target Dev" <linux-iscsi-target-dev@googlegroups.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] [Target_Core_Mod 3/12]: Update struct target_core_fabric_ops API
Date: Fri, 12 Dec 2008 01:30:26 -0800 [thread overview]
Message-ID: <1229074226.4153.641.camel@haakon2.linux-iscsi.org> (raw)
>From aa7f86b29b9cb57c3a61a40a08ec50cccb9ee1d1 Mon Sep 17 00:00:00 2001
From: Nicholas Bellinger <nab@linux-iscsi.org>
Date: Fri, 12 Dec 2008 00:46:21 -0800
Subject: [PATCH] [Target_Core_Mod]: Update struct target_core_fabric_ops API
This patch adds function pointers to struct target_core_fabric_ops,
the template for Target_Core_Mod/ConfigFS. Also, some previously prefixed
iscsi_* parameters have now been completely converted to se_* data structures.
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
---
drivers/lio-core/target_core_fabric_ops.h | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/drivers/lio-core/target_core_fabric_ops.h b/drivers/lio-core/target_core_fabric_ops.h
index 1ac2d61..37aa015 100644
--- a/drivers/lio-core/target_core_fabric_ops.h
+++ b/drivers/lio-core/target_core_fabric_ops.h
@@ -1,11 +1,20 @@
struct target_core_fabric_ops {
+ char *(*get_fabric_name)(void);
+ char *(*tpg_get_wwn)(struct se_portal_group_s *);
+ u32 (*tpg_get_tag)(struct se_portal_group_s *);
+ u32 (*tpg_get_default_depth)(struct se_portal_group_s *);
+ int (*tpg_check_demo_mode)(struct se_portal_group_s *);
+ int (*tpg_check_demo_mode_write_protect)(struct se_portal_group_s *);
+ int (*tpg_release_node_acl)(struct se_portal_group_s *, struct se_node_acl_s *);
+ int (*tpg_get_inst_index)(struct se_portal_group_s *);
void (*release_cmd_to_pool)(struct se_cmd_s *);
void (*release_cmd_direct)(struct se_cmd_s *);
- int (*dev_del_lun)(struct iscsi_portal_group_s *, __u32);
- int (*stop_session)(struct iscsi_session_s *, int, int);
- void (*fall_back_to_erl0)(struct iscsi_conn_s *);
+ int (*dev_del_lun)(struct se_portal_group_s *, __u32);
+ int (*stop_session)(struct se_session_s *, int, int);
+ void (*fall_back_to_erl0)(struct se_session_s *);
int (*write_pending)(struct se_cmd_s *);
- void (*dec_nacl_count)(struct iscsi_node_acl_s *, struct se_cmd_s *);
+ void (*dec_nacl_count)(struct se_node_acl_s *, struct se_cmd_s *);
+ void (*set_default_node_attributes)(struct se_node_acl_s *);
void *(*scsi_auth_intr_seq_start)(struct seq_file *, loff_t *);
void *(*scsi_auth_intr_seq_next)(struct seq_file *, void *, loff_t *);
int (*scsi_auth_intr_seq_show)(struct seq_file *, void *);
--
1.5.4.1
reply other threads:[~2008-12-12 9:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1229074226.4153.641.camel@haakon2.linux-iscsi.org \
--to=nab@linux-iscsi.org \
--cc=linux-iscsi-target-dev@googlegroups.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®