From owner-soc-status@FreeBSD.ORG Sat Jun 13 09:58:32 2015 Return-Path: Delivered-To: soc-status@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 15AF1DC for ; Sat, 13 Jun 2015 09:58:32 +0000 (UTC) (envelope-from neerajrawat2011@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D5F26C0C for ; Sat, 13 Jun 2015 09:58:31 +0000 (UTC) (envelope-from neerajrawat2011@gmail.com) Received: by igbsb11 with SMTP id sb11so24272859igb.0 for ; Sat, 13 Jun 2015 02:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/7K/pmDt4jyJegR8fROHXwIl80tcUibbuIL/Clrdaq0=; b=vNhZVA3FV5KRL1wgr+ELcneWhTWrauhgYYZH0bO3CNe/AHVpYToyTZNkiIzztDqUNY LFBP5oMsAq0eZ8SMnvcvnrgBLL0shTBnfBG/zFtIkdnWLWmAttNOELKIUKmDxB9+O7b8 hvwqiYjYChM1fGAjSUm4dzfgB5p1RxqqnzB1Atw84bzPDpM/rj5hQl2/HifiaILpEFjN IvlRiRkcn6GfT62yspkssm2wb6cmmC4gFUb7RIIyl3CBKxejhCiK8110s1jZvYUAWeo7 BpHJIEb/2piS1AwtkKxvrjrojMBvRs3nEpHEC9zP3+JXwLcvidTCVT39hH9UhYEW3jo0 sM+w== MIME-Version: 1.0 X-Received: by 10.107.46.226 with SMTP id u95mr23542071iou.68.1434189511243; Sat, 13 Jun 2015 02:58:31 -0700 (PDT) Received: by 10.64.41.135 with HTTP; Sat, 13 Jun 2015 02:58:31 -0700 (PDT) Date: Sat, 13 Jun 2015 15:28:31 +0530 Message-ID: Subject: weekly report "ADD CD emulation in CTL" From: Neeraj Rawat To: soc-status@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2015 09:58:32 -0000 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