All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolas D <nd@saitis.net>
To: target-devel@vger.kernel.org
Subject: Re: MaxTransferLength
Date: Wed, 25 Apr 2018 10:13:26 +0000	[thread overview]
Message-ID: <20180425101326.GR27687@hydro.skol.ch> (raw)
In-Reply-To: <20180424122512.GQ27687@hydro.skol.ch>


Hello,

On Tue, Apr 24, 2018 at 07:53:53AM -0500, Bryant G. Ly wrote:
> 
> On 4/24/18 7:38 AM, Hannes Reinecke wrote:
> 
> >'pscsi' is the SCSI pass-through, so it'll be presenting the
> >values from the underlying device; I doubt you can change that.

I have tried to tweak /sys/block/sr0/queue/max_sectors_kb but with no
luck (sr0 is the backend exported) Can you tell me if targetcli use this
value? And if yes, when is it taken into account? (on backend creation?
when the initiator connects? sometime else?)

> >What you could try is to mount the DVD, and export the mountpoint
> >via the file backend; that way you should be able to tweak the
> >parameters.

I forgot to say that the goal is to play dvd/bd video disks and that I
need the pass-through for all the special commands needed to authenticate
the drive etc. So using the file backend does not seem to be an option.

> Adding to what Hannes is saying, if you need true dvd/cd emulation you can
> use file optical media backstore via user:fbo from tcmu-runner.

Does the user:fbo handle the necessary special command for video dvd/bd?

In that story I had exactly the same extremely slow behaviour described
in this old post before I could limit the maximum transfer size:
https://www.spinics.net/lists/target-devel/msg06277.html

Ramin Mahmoodi, do you still read target-devel?

Nicolas

  parent reply	other threads:[~2018-04-25 10:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-24 12:25 MaxTransferLength Nicolas D
2018-04-24 12:38 ` MaxTransferLength Hannes Reinecke
2018-04-24 12:53 ` MaxTransferLength Bryant G. Ly
2018-04-25 10:13 ` Nicolas D [this message]
2018-04-25 13:46 ` MaxTransferLength Bryant G. Ly
2018-05-23 20:48 ` MaxTransferLength Nicolas D
2018-05-24 13:46 ` MaxTransferLength Bryant G. Ly
2018-06-13 11:31 ` MaxTransferLength Nicolas D

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=20180425101326.GR27687@hydro.skol.ch \
    --to=nd@saitis.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.