[SCSI] libosd: OSDv2 auto detection
authorBoaz Harrosh <bharrosh@panasas.com>
Sun, 25 Jan 2009 15:13:38 +0000 (17:13 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 12 Mar 2009 17:58:08 +0000 (12:58 -0500)
commit1b9dce94c8a24a3f1a01fcdf688f2d903b32acdf
treec0e17494a5eb8f8701d3674afff26b91ccf593b3
parentc6572c983726fe3f3bb5f07e9afe3a9b8e402d1b
[SCSI] libosd: OSDv2 auto detection

Auto detect an OSDv2 or OSDv1 target at run time. Note how none
of the OSD API calls change. The tests do not know what device
version it is.

This test now passes against both the IBM-OSD-SIM OSD1 target
as well as OSC's OSD2 target.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Reviewed-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/osd/osd_initiator.c
drivers/scsi/osd/osd_uld.c
include/scsi/osd_initiator.h