public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* BSG question
@ 2004-09-16  2:36 Douglas Gilbert
  2004-09-16  6:05 ` Jens Axboe
  0 siblings, 1 reply; 5+ messages in thread
From: Douglas Gilbert @ 2004-09-16  2:36 UTC (permalink / raw)
  To: SCSI Mailing List

In the "[PATCH] New QStor SATA/RAID Driver for 2.6.9-rc2"
thread Jeff Garzik wrote:

 > * if the userland interface is 100% sending cdbs or taskfiles, then I
 > would prefer that Jens Axboe's "bsg" be used.  Its a chardev interface
 > for sending/receiving commands to a request queue.

I played around with bsg
http://marc.theaimsgroup.com/?l=linux-scsi&m=109160967927030&w=2
about a month ago and it
looked good (and I would like sg to evolve in that
direction as well). My plan was to make a version of sg_dd
from sg3_utils use it. However since it was a patch it is hard
to keep in sync as kernel versions roll-out.

Any chance of getting it into the main line kernel,
on the quiet? Failing that, a web site with up to date
patches.

Various comments were made at the time
of its release that a more 64/32 bit friendly version
of struct sg_io_hdr was needed (this is for folks running
32 bits apps on a 64 bit architectures). As I pointed
out struct sg_io_hdr was written with alternate interfaces
in mind (i.e. its first field: 'int interface_id').

bsg has one device node (i.e. "/dev/bsg") which users can
open and then bind/attach to an existing block device
node (e.g. /dev/sda). Extending this to bind to sysfs
device paths might be handy as well for
    - (SCSI) devices that have an unsupported peripheral device
       type (e.g. SES)
    - other devices (e.g. SMP port of an SAS expander)


Doug Gilbert

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-09-16 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-16  2:36 BSG question Douglas Gilbert
2004-09-16  6:05 ` Jens Axboe
2004-09-16  7:14   ` Douglas Gilbert
2004-09-16  7:24     ` Jens Axboe
2004-09-16 15:11     ` Peter Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox