Fwd: weekly report "ADD CD emulation in CTL"

Neeraj Rawat neerajrawat2011 at gmail.com
Sat Jun 13 10:00:01 UTC 2015


"this mail is in continuation of weekly report 3"

find the attached screen shot
---------- Forwarded message ----------
From: Neeraj Rawat <neerajrawat2011 at gmail.com>
Date: Sat, Jun 13, 2015 at 3:28 PM
Subject: weekly report "ADD CD emulation in CTL"
To: soc-status at freebsd.org


REPORT WEEK - 3

Week 3 starts with the testing of the modified CTL code, in which i added
T_CDROM.

for the testing :
1. i set device type in ctld as T_CDROM  in place of T_DIRECT in
head/use.sbin/ctld/kernel.c file.

2.Then i build the kernel, then install this custom kernel. Then rebooted
it.. All went fine.. custom kernel booted succesfully.

3. Then install custom ctld and created ctl.conf file in /etc.

4. then stated with ctld and iscsictl.

5. And i got the accepted result, iscsictl is able to connect cd device..
cd1 device is created.. this can be seen the screen shot attached with this
mail.

6. then i extended ctld package and ctl.conf so that user can provide disk,
cd or tape device type in ctl.conf and ctld could set device type
accordingly for the lun


In ctl.conf

*device-type "cd"/"disk"/"tape"*  . this line is added for the lun..

In ctld.. token.l and parse.y are extended so that above line could be
parsed by ctld.

Then kernel.c aslo extended.. Where itset device type for the lun.. there i
added few if else so that on the basis of above string ctld could set
device type (T_CDROM or T_DIRECT or T_SEQUENTIAL)


this modified ctld code is also committed to the github repo at
http://github.com/neerajrawat/freebsd


More information about the soc-status mailing list