From: Ahmed Al-Mehdi <ahmedalmehdi@gmail.com>
To: stgt@vger.kernel.org
Subject: Pass through device support in tgt
Date: Tue, 2 Jun 2015 19:02:59 -0700 [thread overview]
Message-ID: <CAKNWCPa8isRsGB0HhW0EE4c65qOPay8cD96wRpO=7yVFSm1Rxg@mail.gmail.com> (raw)
Hello,
I am trying to understand the passthrough device support of tgt. For
a regular block device, to create a LU I use the following command ( I
explicitly stated the default values below):
tgtadm --mode logicalunit --op new --tid 1 --lun 1 --device-type disk
--bstype rdwr --backing-store /dev/sdb
The above command takes the block device "/dev/sdb" and exports it as
LU 1 to the initiator.
- What does it mean the tgt "creates a device of type disk" Creates
where, internal to tgt?
- What is the implication of that? Is it how the SCSI commands coming
over iSCSI is treated/handled (with respect to caching, buffering,
read ahead, etct)? Or something else?
The following example is cited in the man pages for a passthrough:
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1
--bstype=sg --device-type=pt --backing-store=/dev/sg4
- How does the "bstype" affect the handling of the SCSI commands?
Does this affect how the IO to the actual device is done (manipulated
before sending to the actual device)?
- What does it mean for the backend storage type to be sg?
Really appreciate any help / pointers.
Regards,
Ahmed.
reply other threads:[~2015-06-03 2:02 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='CAKNWCPa8isRsGB0HhW0EE4c65qOPay8cD96wRpO=7yVFSm1Rxg@mail.gmail.com' \
--to=ahmedalmehdi@gmail.com \
--cc=stgt@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).