From owner-soc-status@FreeBSD.ORG Sat Jun 13 10:00:01 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 2C23E10A for ; Sat, 13 Jun 2015 10:00:01 +0000 (UTC) (envelope-from neerajrawat2011@gmail.com) Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) (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 D4738C13 for ; Sat, 13 Jun 2015 10:00:00 +0000 (UTC) (envelope-from neerajrawat2011@gmail.com) Received: by iebgx4 with SMTP id gx4so37158711ieb.0 for ; Sat, 13 Jun 2015 03:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=U/O9kMa9anIhg2ptMXfwodJtzFnYi2D0832o5430EjU=; b=B0dXh2Oe/hDQR/Kelgp3M2EVB6PG473w80pj99ttuqtEzFnIRkFjYVDB7oXI6AstWN NgE2FobUE/OicICBsdRHbiR8ky0+vIzDnon3mZ3EJJqWeXJ/lwkff/rcvRhzvY89Vk2l RqVvp5TUG2rGKcA7HLPML1CPlU8x+JpB5ImjFmVWycu1IMyWIdB2wcX3yOc2a1hBMA/G rzoftalbYjWz97vRSB9OAz7GrovJxHZGp0/AcdJ2S6ksOJDrIK15kTCybfsz37Rx0bd3 EnAAWV0u5j09QAZ4096HpZ4ONP66ttrHj25uPI25rTWHAsAmmVC/0zuU3avhh5gKA23v CyZQ== MIME-Version: 1.0 X-Received: by 10.50.109.138 with SMTP id hs10mr9677117igb.48.1434189600206; Sat, 13 Jun 2015 03:00:00 -0700 (PDT) Received: by 10.64.41.135 with HTTP; Sat, 13 Jun 2015 03:00:00 -0700 (PDT) In-Reply-To: References: Date: Sat, 13 Jun 2015 15:30:00 +0530 Message-ID: Subject: Fwd: 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 10:00:01 -0000 "this mail is in continuation of weekly report 3" find the attached screen shot ---------- Forwarded message ---------- From: Neeraj Rawat Date: Sat, Jun 13, 2015 at 3:28 PM Subject: weekly report "ADD CD emulation in CTL" To: soc-status@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