diff options
| author | Kenneth D. Merry <ken@FreeBSD.org> | 2000-02-20 04:42:44 +0000 |
|---|---|---|
| committer | Kenneth D. Merry <ken@FreeBSD.org> | 2000-02-20 04:42:44 +0000 |
| commit | 955f7e7474f4d5ebf690f7d2fe30dcc0da3a1d09 (patch) | |
| tree | fa0057eb3220c36ea24af5507bcde3ac9b6cf6ea /sys | |
| parent | d98722bcb9f1a3801ed157843562d01f0dc87378 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/cam/scsi/scsi_all.c | 7 | ||||
| -rw-r--r-- | sys/cam/scsi/scsi_all.h | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c index 10d4cc8595bf..2844ac47f0e3 100644 --- a/sys/cam/scsi/scsi_all.c +++ b/sys/cam/scsi/scsi_all.c @@ -2290,6 +2290,13 @@ scsi_interpret_sense(struct cam_device *device, union ccb *ccb, return (error); } +/* + * This function currently requires at least 36 bytes, or + * SHORT_INQUIRY_LENGTH, worth of data to function properly. If this + * function needs more or less data in the future, another length should be + * defined in scsi_all.h to indicate the minimum amount of data necessary + * for this routine to function properly. + */ void scsi_print_inquiry(struct scsi_inquiry_data *inq_data) { diff --git a/sys/cam/scsi/scsi_all.h b/sys/cam/scsi/scsi_all.h index 37caa19e6f52..083b83686ba9 100644 --- a/sys/cam/scsi/scsi_all.h +++ b/sys/cam/scsi/scsi_all.h @@ -477,7 +477,12 @@ struct scsi_start_stop_unit #define T_REMOV 1 #define T_FIXED 0 - +/* + * This length is the initial inquiry length used by the probe code, as + * well as the legnth necessary for scsi_print_inquiry() to function + * correctly. If either use requires a different length in the future, + * the two values should be de-coupled. + */ #define SHORT_INQUIRY_LENGTH 36 struct scsi_inquiry_data |
