From: Vladislav B. <vs...@vl...> - 2008-09-24 12:11:51
|
Hi, Richard Sharpe wrote: > Hi, > > Attached is the first version of the driver I mentioned a while ago. It > is a SCSI LLD that creates a SCSI target and then ferries all commands > to the SCST driver. > > This works in that I can set up a vdisk and then copy from my real disk > to the vdisk and check the results. It is slow because of all the printks. > > I started this in Santa Clara, worked on it in Bangalore and got it to > the stage of working here in Hyderabad. I will work on it some more to > clean it up and will probably do more work in Hong Kong airport on the > way home. This feels just like the good old days when I worked on > Ethereal in airport lounges. > > The commands I used to test are: > > modprobe scst > modprobe scst_vdisk > echo "open vm_disk /some/path/to/a/file" > /proc/scsi_tgt/vdisk/vdisk > echo "add vm_disk 0" > /proc/scsi_tgt/groups/Default/devices > > insmod scst_debug > > then do some dd's etc. It seems to me as a black magic. How can it submit requests to SCST core with: static int scst_debug_queuecommand(struct scsi_cmnd *SCpnt, done_funct_t done) { return SUCCESS; } ? I guess you sent an older version? Also, you can't remove other peoples copyrights from the scsi_debug code. They can be hurt by it. > This should work for tape devices as well, since there is nothing disk > specific in my driver. > > Any feedback appreciated. > > Regards, > Richard Sharpe, Wireshark, Samba ... > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Scst-devel mailing list > Scs...@li... > https://lists.sourceforge.net/lists/listinfo/scst-devel |