All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bryant G. Ly" <bryantly@linux.ibm.com>
To: target-devel@vger.kernel.org
Subject: Re: MaxTransferLength
Date: Thu, 24 May 2018 13:46:46 +0000	[thread overview]
Message-ID: <69420f66-137f-79d4-b453-7db5f487dd38@linux.ibm.com> (raw)
In-Reply-To: <20180424122512.GQ27687@hydro.skol.ch>



On 5/23/18 3:48 PM, Nicolas D wrote:

> Hi,
>
> we finally found time to set up tcmu with user:fbo
>
> On Wed, Apr 25, 2018 at 08:46:23AM -0500, Bryant G. Ly wrote:
>> Yes, user:fbo was written specifically to emulate optical drives, so it should
>> handle all the commands you need for dvd.
> But can I find somewhere some documentation, I am lost (my dvd drive is
> /dev/sr0):
>
>   # targetcli 
>   tgrgetcli shell version 2.1.fb43
>   Copyright 2011-2013 by Datera, Inc and others.
>   For help on commands, type 'help'.
>   /backstores/user:fbo> create name=dvdfbo 
>   cfgstring=  size=       wwn=        
>   /backstores/user:fbo> create name=dvdfbo 
>   Missing required parameters 'cfgstring', 'size'
>   /backstores/user:fbo> create name=dvdfbo cfgstring=/dev/sr0
>   Missing required parameter size
>
> And also why size should be mandatory on an existing device?
>
>
The use of user:fbo is to emulate an optical device... So you would want to map an ISO9660 filesystem.

In this case you would do:

sudo targetcli /backstores/user:fbo create name=test_name cfgstring=/home/test/path.iso size\x10000

Then you would map this backstore device to a fabric lun. Afterwards, on the client
VM you would see this as dev/sr0 when you boot up.


-Bryant


  parent reply	other threads:[~2018-05-24 13:46 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 ` MaxTransferLength Nicolas D
2018-04-25 13:46 ` MaxTransferLength Bryant G. Ly
2018-05-23 20:48 ` MaxTransferLength Nicolas D
2018-05-24 13:46 ` Bryant G. Ly [this message]
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=69420f66-137f-79d4-b453-7db5f487dd38@linux.ibm.com \
    --to=bryantly@linux.ibm.com \
    --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.