From: Andy Grover <agrover@redhat.com>
To: "Richard W.M. Jones" <rjones@redhat.com>
Cc: target-devel@vger.kernel.org, linux-scsi@vger.kernel.org,
hch@lst.de, nab@linux-iscsi.org, shli@kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [RFC 1/2] target: Add documentation on the target userspace pass-through driver
Date: Sun, 31 Aug 2014 12:49:26 -0700 [thread overview]
Message-ID: <54037C46.1050601@redhat.com> (raw)
In-Reply-To: <20140830173510.GA11820@redhat.com>
On 08/30/2014 10:35 AM, Richard W.M. Jones wrote:
> On Tue, Jul 01, 2014 at 12:11:14PM -0700, Andy Grover wrote:
>> Describes the driver and its interface to make it possible for user
>> programs to back a LIO-exported LUN.
>>
>> Signed-off-by: Andy Grover <agrover@redhat.com>
>> ---
>> Documentation/target/tcmu-design.txt | 210 +++++++++++++++++++++++++++++++++++
>> 1 file changed, 210 insertions(+)
>> create mode 100644 Documentation/target/tcmu-design.txt
>>
>> diff --git a/Documentation/target/tcmu-design.txt b/Documentation/target/tcmu-design.txt
>> new file mode 100644
>> index 0000000..200ff3e
>> --- /dev/null
>> +++ b/Documentation/target/tcmu-design.txt
>> @@ -0,0 +1,210 @@
>> +TCM Userspace Design
>> +--------------------
>> +
>> +
>> +Background:
>> +
>> +In addition to modularizing the transport protocol used for carrying
>> +SCSI commands ("fabrics"), the Linux kernel target, LIO, also modularizes
>> +the actual data storage as well. These are referred to as "backstores"
>> +or "storage engines". The target comes with backstores that allow a
>> +file, a block device, RAM, or another SCSI device to be used for the
>> +local storage needed for the exported SCSI LUN. Like the rest of LIO,
>> +these are implemented entirely as kernel code.
>> +
>> +These backstores cover the most common use cases, but not all. One new
>> +use case that other non-kernel target solutions, such as tgt, are able
>> +to support is using Gluster's GLFS or Ceph's RBD as a backstore. The
>> +target then serves as a translator, allowing initiators to store data
>> +in these non-traditional networked storage systems, while still only
>> +using standard protocols themselves.
>> +
>> +If the target is a userspace process, supporting these is easy. tgt,
>> +for example, needs only a small adapter module for each, because the
>> +modules just use the available userspace libraries for RBD and GLFS.
>> +
>> +Adding support for these backstores in LIO is considerably more
>> +difficult, because LIO is entirely kernel code. Instead of undertaking
>> +the significant work to port the GLFS or RBD APIs and protocols to the
>> +kernel, another approach is to create a userspace pass-through
>> +backstore for LIO, "TCMU".
>
> It has to be said that this documentation is terrible.
>
> Jumping "in medias res"[1] is great for fiction, awful for technical
> documentation.
>
> I would recommend the Economist Style Guide[2]. They always say
> "Barak Obama, President of the United States" the first time he is
> mentioned in an article, even though almost everyone knows who Barak
> Obama is.
>
> In this case you're leaping into something .. fabrics, LIO,
> backstores, target solutions, ... aargh. Explain what you mean by
> each term and how it all fits together.
Thanks for the feedback. I am undoubtedly too close to the details,
because I thought I *was* explaining things :)
This doc is for people like you -- tech-savvy but unfamiliar with this
specific area. Would you be so kind as to point out exactly the terms
this document should explain? Should it explain SCSI and SCSI commands?
What a SCSI target is? Say "target implementations" rather than "target
solutions"? Do I need some ASCII art?
Or, if in finding these gaps you've actually picked up the jargon and
wanted to just take a pass a rewriting it, that would be fine too :)
I've read some of your libguestfs docs and they were very understandable.
Regards -- Andy
next prev parent reply other threads:[~2014-08-31 19:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 19:11 [RFC 0/2] target: userspace pass-through backend Andy Grover
2014-07-01 19:11 ` [RFC 1/2] target: Add documentation on the target userspace pass-through driver Andy Grover
2014-07-05 11:29 ` Alex Elsayed
2014-07-08 22:03 ` Andy Grover
2014-08-30 17:35 ` Richard W.M. Jones
2014-08-31 19:49 ` Andy Grover [this message]
2014-08-31 21:22 ` Richard W.M. Jones
2014-09-02 22:06 ` Andy Grover
2014-07-01 19:11 ` [RFC 2/2] target: Add a user-passthrough backstore Andy Grover
2014-07-07 21:26 ` [RFC 0/2] target: userspace pass-through backend Andy Grover
2014-07-14 15:08 ` Stefan Hajnoczi
2014-08-20 18:28 ` [RFCv2 0/4] Userspace pass-through storage engine (backend) Andy Grover
2014-08-20 18:28 ` [RFCv2 1/4] target: Remove unneeded check in sbc_parse_cdb Andy Grover
2014-08-20 18:28 ` [RFCv2 2/4] uio: Export definition of struct uio_device Andy Grover
2014-08-20 18:28 ` [RFCv2 3/4] target: Add a user-passthrough backstore Andy Grover
2014-08-20 18:28 ` [RFCv2 4/4] target: Add documentation on the target userspace pass-through driver Andy Grover
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=54037C46.1050601@redhat.com \
--to=agrover@redhat.com \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=nab@linux-iscsi.org \
--cc=rjones@redhat.com \
--cc=shli@kernel.org \
--cc=target-devel@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