From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Vladislav Bolkhovitin <vst@vlnb.net>
Cc: "Nicholas A. Bellinger" <nab@linux-iscsi.org>,
Mike Christie <michaelc@cs.wisc.edu>,
FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
scst-devel <scst-devel@lists.sourceforge.net>,
linux-scsi@vger.kernel.org,
Bart Van Assche <bart.vanassche@gmail.com>,
Greg KH <greg@kroah.com>
Subject: Re: Kernel Level Generic Target Mode control path
Date: Thu, 28 Aug 2008 13:00:59 -0500 [thread overview]
Message-ID: <1219946459.3378.2.camel@localhost.localdomain> (raw)
In-Reply-To: <48B6E5C8.2000306@vlnb.net>
On Thu, 2008-08-28 at 21:52 +0400, Vladislav Bolkhovitin wrote:
> >> So, I believe, a configuration interface should be rather /proc or /sys
> >> interface based. I don't think we should care much about backward
> >> compatibility with tgtadm, because the existing interface doesn't reach
> >> the state of being widely used.
> >
> > I would definately vote against proc here for the fancy stuff I
> > mentioned above. I have experience enabled core-iscsi to use sysfs for
> > RO data, but nothing along the lines of what would be required for a
> > generic target mode RW control path. Does anyone with sysfs experience
> > have any comments on thing..?
>
> Sysfs as well as configfs have one big disadvantage. They limit each
> file to only 4KB. This would force us for to create a subdirectory for
> each device and for each connected initiator. I don't like seeing
> thousands subdirectories. Additionally, such layout is a lot less
> convenient for parsing for the high level configuration tool, which
> needs to find out the difference between the current configuration and
> content of the corresponding config file.
That's because each of those interfaces is designed around one value per
file.
> Currently, with procfs SCST can list in /proc/scst/sessions virtually
> unlimited amount of connected initiators in a simple for parsing manner.
> It was done using seq interface well and simply. Neither sysfs, nor
> configfs support seq interface. This would introduce significant effort
> in both kernel and user spaces.
>
> Debugfs supports seq interface, but, because of the name, I doubt we can
> use it ;)
>
> Thus, looks like we'd better stay with /proc. After all, networking and
> VM widely use /proc for internal configuration. Why SCSI target is worse?
I wouldn't do that. /proc has been deprecated for several years for
large config interfaces (indeed it's trying to be scaled back only to
deal with processes). Nothing with a huge /proc interface would pass a
review for 2.6 nowadays.
James
next prev parent reply other threads:[~2008-08-28 18:01 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 19:42 [Ksummit-2008-discuss] Kernel Summit Request for Discussion: The Future of Target mode and Cloud storage on Linux Vladislav Bolkhovitin
2008-08-21 23:19 ` FUJITA Tomonori
2008-08-22 19:01 ` Vladislav Bolkhovitin
2008-08-23 2:35 ` FUJITA Tomonori
2008-08-27 18:00 ` Vladislav Bolkhovitin
2008-08-21 23:31 ` [Ksummit-2008-discuss] " Mike Christie
2008-08-21 23:53 ` James Bottomley
2008-08-22 19:00 ` Vladislav Bolkhovitin
2008-08-22 19:13 ` James Bottomley
2008-08-27 17:49 ` Vladislav Bolkhovitin
2008-08-22 18:59 ` [Ksummit-2008-discuss] " Vladislav Bolkhovitin
2008-08-22 19:05 ` Arjan van de Ven
2008-08-22 19:46 ` Mike Christie
2008-08-27 17:51 ` Vladislav Bolkhovitin
2008-08-25 21:59 ` [Ksummit-2008-discuss] " Nicholas A. Bellinger
2008-08-27 17:56 ` Vladislav Bolkhovitin
2008-08-27 17:59 ` [Scst-devel] " Ming Zhang
2008-08-28 17:48 ` Vladislav Bolkhovitin
2008-08-27 22:13 ` Kernel Level Generic Target Mode control path Nicholas A. Bellinger
2008-08-27 22:40 ` Nicholas A. Bellinger
2008-08-28 17:52 ` Vladislav Bolkhovitin
2008-08-28 17:52 ` Vladislav Bolkhovitin
2008-08-28 18:00 ` James Bottomley [this message]
2008-08-28 23:08 ` Nicholas A. Bellinger
2008-08-28 23:28 ` Nicholas A. Bellinger
2008-08-29 16:28 ` Vladislav Bolkhovitin
2008-08-29 20:10 ` Nicholas A. Bellinger
2008-08-30 20:53 ` Vladislav Bolkhovitin
2008-08-31 18:18 ` Bart Van Assche
2008-09-02 21:25 ` Nicholas A. Bellinger
2008-09-19 17:50 ` Vladislav Bolkhovitin
2008-08-31 18:42 ` Bart Van Assche
2008-09-19 17:50 ` Vladislav Bolkhovitin
2008-08-22 0:26 ` [Ksummit-2008-discuss] Kernel Summit Request for Discussion: The Future of Target mode and Cloud storage on Linux Arjan van de Ven
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=1219946459.3378.2.camel@localhost.localdomain \
--to=james.bottomley@hansenpartnership.com \
--cc=bart.vanassche@gmail.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=greg@kroah.com \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=nab@linux-iscsi.org \
--cc=scst-devel@lists.sourceforge.net \
--cc=vst@vlnb.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