[Stgt-devel] [PATCH 4/4] OSD command parser
Pete Wyckoff
pw
Wed Feb 21 19:30:58 CET 2007
fujita.tomonori at lab.ntt.co.jp wrote on Mon, 19 Feb 2007 23:32 +0900:
> I put a patch to support various device types:
>
> http://zaal.org/tgt/device-types.diff
>
> I don't merge it because:
>
> - only iscsi + AIO works (sg and ibmvio are broken).
>
> - there are still lots of things to implement
>
> - huge cleanup is necessary
>
> I took an approach discussed a long time ago in IET mailing list. Each
> device type has its own function array (like sbc_mode_sense). spc code
> exports some common functions. A LLD can cleanly replace functions in
> arrays (so we can kill dirty hack in tgt_driver struct). A transport
> class also needs that (though we don't implement yet).
That would be a reasonable approach, although the tables will be
very sparse. I shouldn't have too much trouble factoring out my
current osd_cmd_perform into separate functions with shared
routines. If you check your patch in, I'll do this and try to help
fix up the bugs and missing pieces.
We'll still have to do something with bkio_submit_t to support
bidirectional and to support returning both data and sense. I have
such a thing for OSD but have not tried to make all the other
devices fit it pending your perusal.
The other largish piece I'm carrying around is AHS support for
iscsi.
-- Pete
More information about the stgt
mailing list