public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Joel Becker <Joel.Becker@oracle.com>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: "Linux-iSCSI.org Target Dev"
	<linux-iscsi-target-dev@googlegroups.com>,
	linux-scsi <linux-scsi@vger.kernel.org>,
	SCST-Devel <scst-devel@lists.sourceforge.net>
Subject: Re: ConfigFS + Target Mode Engine API discussion
Date: Fri, 12 Sep 2008 13:15:41 -0700	[thread overview]
Message-ID: <20080912201541.GA26469@mail.oracle.com> (raw)
In-Reply-To: <1221123529.27831.343.camel@haakon2.linux-iscsi.org>

On Thu, Sep 11, 2008 at 01:58:49AM -0700, Nicholas A. Bellinger wrote:
> *) $CONFIGFS/target is created with configfs_register_subsystem()
> 
> *) $CONFIGFS/target/core is created as a default group under struct
> configfs_subsystem->su_group to interact with generic target mode
> engine's storage objects (eg: SCSI HCTL referenced devices, LVM UUID, MD
> UUID). 
> 
> ...........
> 
>  # Load LIO-Target using function symbols from target_core_configfs
> modprobe iscsi_target_mod
> 
> module_init() from iscsi_target_mod (eg: the fabric module) calls
> target_fabric_configfs_register() in target_core_configfs.ko, which is a
> small wrapper for calling sys_mkdir($CONFIGFS/target/$FABRIC) to kick
> off the struct config_group_operations->make_group() to create a struct
> config_item for /sys/kernel/config/target/iscsi (or whatever the fabric
> is called).

	No, you don't do this.  Like I said, configfs clients let
userspace create and destroy items.  Not kernelspace.  Do not call
sys_mkdir()/sys_rmdir() from your modules.
	If you don't do this, you also don't need your lookup_hash()
export.  Your code should be behaving as if it didn't know the
filesystem view existed.
	I'm trying to understand what you're actually doing.  Not the
"I want iscsi_target_mod to appear under target/iscsi" part, but why it
needs to be there in the first place.  how it all connects together.

Joel

-- 

"Every new beginning comes from some other beginning's end."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127

  parent reply	other threads:[~2008-09-12 20:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1221087547.27831.165.camel@haakon2.linux-iscsi.org>
     [not found] ` <20080910233107.GC23864@mail.oracle.com>
2008-09-11  1:42   ` ConfigFS + Target Mode Engine API discussion Nicholas A. Bellinger
2008-09-11  2:13     ` Joel Becker
2008-09-11  4:29       ` Nicholas A. Bellinger
2008-09-11  6:38         ` Joel Becker
2008-09-11  8:58           ` Nicholas A. Bellinger
2008-09-12 16:24             ` Nicholas A. Bellinger
2008-09-12 16:30               ` Nicholas A. Bellinger
2008-09-12 20:15             ` Joel Becker [this message]
2008-09-12 22:27               ` Nicholas A. Bellinger
2008-09-13  4:49                 ` Joel Becker
2008-09-13 19:22                   ` Nicholas A. Bellinger
2008-09-14  1:56                     ` Nicholas A. Bellinger

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=20080912201541.GA26469@mail.oracle.com \
    --to=joel.becker@oracle.com \
    --cc=linux-iscsi-target-dev@googlegroups.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=nab@linux-iscsi.org \
    --cc=scst-devel@lists.sourceforge.net \
    /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