[Stgt-devel] vtl take 3

FUJITA Tomonori fujita.tomonori
Thu May 3 07:10:14 CEST 2007


From: "Mark Harvey" <markh794 at gmail.com>
Subject: [Stgt-devel] vtl take 3
Date: Fri, 27 Apr 2007 11:10:15 +1000

> Post #3 of vtl patch against current scsi target git head..
>  - Sorry - it is an attachment due to patch size (80k)
> 
> Updated smc module to use 'kernel style param parser' parser.c
>  - ssc module is still to be updated.
> 
> Moved common 'scsi_sn' & 'scsi_id' from target.c to spc.c
>  - To me, the processing of module 'params' should be handled in each module.
>  - sbc / mmc both call the common (original code in target.c) routine
> in spc.c. While this is not a 'SCSI Primary Command', I chose this as
> the 'best fit' place for the common routine.

OK. I don't like to have the code to parse scsi_sn and scsi_id in all
the device types but seems that we have no choice (we could do
something like IET iotype code does, but it's not nice).


> smc improvements since last post:
>  - Configure slots & ability to add 'media' (or at least assign a
> barcode to the slot location)
>  - mode sense pages.
> 
> tgt-setup in the / directory is my 'pre-canned' script to test.
> 
> What next:
> - Over the next few days I should have enough of the smc coded which
> will allow utility 'mtx' to move media between slots / drives.
> - Then it will be onto the ssc module.
> 
> Log sense pages still to be implemented. Current code in this patch
> for LOG SENSE/SELECT is just a place holder.

I'm happy to merge your code when it can do something useful. It
doesn't need to be complete.

Thanks.



More information about the stgt mailing list