|
From: Steven U. <st...@um...> - 2010-06-26 00:59:24
|
Thomas, This probably won't work but perhaps it's worth a shot. Try creating a loopback device like so: /sbin/losetup -f /dev/sr0 --show This will give you something like /dev/loop0, then create a lun for it just as you did /dev/sr0 previously. Probably a good idea to make the target as read-only too: ietadm --op new --tid=222 --params Name=iqn.2010-06.net.homeip.schwinge.boole:sr0 ietadm --op new --tid=222 --lun=0 --params path=/dev/loop0,iomode=ro -Steve On 6/24/2010 2:58 PM, Thomas Schwinge wrote: > Hello! > > Naïvely I tried publishing my CDRW / DVD writer like this: > > Target iqn.2010-06.net.homeip.schwinge.boole:sr0 > Lun 0 Type=blockio,Path=/dev/sr0 > > But that doesn't work: > > [46239.743043] iSCSI Enterprise Target Software - version 1.4.20.1 > [46239.743723] iscsi_trgt: Registered io type fileio > [46239.744228] iscsi_trgt: Registered io type blockio > [46239.744598] iscsi_trgt: Registered io type nullio > [46239.782010] iscsi_trgt: blockio_open_path(168) Can't open device /dev/sr0, error -30 > [46239.783009] iscsi_trgt: blockio_attach(295) Error attaching Lun 0 to Target iqn.2010-06.net.homeip.schwinge.boole:sr0 > > The client can connect to the server, but doesn't show any devices. > > I found very few mailing list posts from years ago, stating the indeed CD > devices (and the like) are not supported. Is this still true? What are > other options to achieve what I want? > > > Regards, > Thomas > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > > > _______________________________________________ > Iscsitarget-devel mailing list > Isc...@li... > https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel > |