[Stgt-devel] supporting non-block devices

FUJITA Tomonori fujita.tomonori
Mon Jan 22 08:23:59 CET 2007

From: Pete Wyckoff <pw at osc.edu>
Subject: Re: [Stgt-devel] supporting non-block devices
Date: Sun, 21 Jan 2007 11:50:12 -0500

> fujita.tomonori at lab.ntt.co.jp wrote on Sat, 20 Jan 2007 23:04 +0900:
> > I plan to split the current scsi command code; spc.c and sbc.c. The
> > device type specific code (sbc.c, osd.c, etc) can use functions in
> > spc.c.
> Sounds good.  I've broken out scsi_cmd_perform to do just SPC
> commands, first.  Then it looks at target type and calls into SBC or
> OSD to perform specific command sets.  This makes things pretty
> modular for us.
> Problem is, we are using our OSD emulator to actually process the
> commands, not a chunk of hardware.  If you had OSD hardware, you
> would presumably use something like LU_BS_RAW and the sg_bdt.
> Instead I have an osdemu_bdt with a cmd_submit function that makes
> calls out to this emulator library.  I don't want to put that in
> stgt, as it's a mess and quite beyond the scope of stgt.

Well, I plan to implement a OSD emulator (osd.c).

More information about the stgt mailing list