[Stgt-devel] [PATCH 4/4] OSD command parser

Pete Wyckoff pw
Sun Mar 4 22:58:00 CET 2007


fujita.tomonori at lab.ntt.co.jp wrote on Mon, 05 Mar 2007 00:12 +0900:
> I've merged it though there are still many things to clean up.
> 
> I added the virtual cd patch that Ming wrote for IET as an
> example. You can export iso files as a cd drive. An initiator can see
> a cd drive, but it can't read the iso file. So there must be bugs,
> however I've not dig into it. Patches are welcome :)
> 
> You can export iso files in the following way:
> 
> tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2001-04.com.example:storage.disk2.tulip.sys1.xyz --target-type cd
> tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 0 -b /home/fujita/debian-31r5-i386-businesscard.iso
> tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
> 
> 
> Pete, I found that you don't put a license in osd.c. GPL2 or GPL2 or
> any later version? Let me know. I'll update and merge it.

Great!  Thanks for doing all this.  It will take me some time for me
to catch up and see how things are integrated now.

Please add license GPL2 exact.  I forgot.

If you generate SVN checkin emails, I would be happy to be added to
that list.

> I added sgv3 pass through support. By default, tgt is compiled with
> sgv3 support instead of sgv4.
> 
> tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2001-04.com.example:storage.disk2.tulip.sys1.xyz --target-type pt
> tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 0 -b /dev/sg0
> tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
> 
> Note that I'll change the interface not to use /dev/sgX directly.
> 
> I can export a disk drive with sgv3 support. But it doesn't work
> fully. I'll fix it someday, but the next thing I'll do is adding
> bi-directional support.

This is a nice addition.  But I'll probably not try it in the near
term.

		-- Pete



More information about the stgt mailing list