diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2009-01-25 10:13:38 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-12 13:58:08 -0400 |
commit | 1b9dce94c8a24a3f1a01fcdf688f2d903b32acdf (patch) | |
tree | c0e17494a5eb8f8701d3674afff26b91ccf593b3 /include/scsi/osd_initiator.h | |
parent | c6572c983726fe3f3bb5f07e9afe3a9b8e402d1b (diff) |
[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>
Diffstat (limited to 'include/scsi/osd_initiator.h')
-rw-r--r-- | include/scsi/osd_initiator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/scsi/osd_initiator.h b/include/scsi/osd_initiator.h index 8482777416d8..24edeae48936 100644 --- a/include/scsi/osd_initiator.h +++ b/include/scsi/osd_initiator.h | |||
@@ -67,6 +67,9 @@ void osduld_unregister_test(unsigned ioctl); | |||
67 | void osd_dev_init(struct osd_dev *od, struct scsi_device *scsi_device); | 67 | void osd_dev_init(struct osd_dev *od, struct scsi_device *scsi_device); |
68 | void osd_dev_fini(struct osd_dev *od); | 68 | void osd_dev_fini(struct osd_dev *od); |
69 | 69 | ||
70 | /* some hi level device operations */ | ||
71 | int osd_auto_detect_ver(struct osd_dev *od, void *caps); /* GFP_KERNEL */ | ||
72 | |||
70 | /* we might want to use function vector in the future */ | 73 | /* we might want to use function vector in the future */ |
71 | static inline void osd_dev_set_ver(struct osd_dev *od, enum osd_std_version v) | 74 | static inline void osd_dev_set_ver(struct osd_dev *od, enum osd_std_version v) |
72 | { | 75 | { |