Date: Sat, 13 Jun 2015 15:28:31 +0530 From: Neeraj Rawat <neerajrawat2011@gmail.com> To: soc-status@freebsd.org Subject: weekly report "ADD CD emulation in CTL" Message-ID: <CAHW0WqATybBaP8X8mCc%2BVN77z9fSyLVK8-DxYyN1NWf8gNAR5Q@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHW0WqATybBaP8X8mCc%2BVN77z9fSyLVK8-DxYyN1NWf8gNAR5Q>