1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

For the target port groups structures, don't allocate the initial element.

This makes things easier for target implementations to calculate how many
elements they need to allocate.

Discussed with:	mjacob, gibbs
MFC after:	1 week
This commit is contained in:
Kenneth D. Merry 2010-06-14 22:02:18 +00:00
parent 2aa15ffdab
commit 37f5dbdfec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209188

View File

@ -902,6 +902,7 @@ struct scsi_target_group
struct scsi_target_port_descriptor {
uint8_t reserved[2];
uint8_t relative_target_port_identifier[2];
uint8_t desc_list[];
};
struct scsi_target_port_group_descriptor {
@ -928,12 +929,12 @@ struct scsi_target_port_group_descriptor {
uint8_t status;
uint8_t vendor_specific;
uint8_t target_port_count;
struct scsi_target_port_descriptor descriptors[1];
struct scsi_target_port_descriptor descriptors[];
};
struct scsi_target_group_data {
uint8_t length[4]; /* length of returned data, in bytes */
struct scsi_target_port_group_descriptor groups[1];
struct scsi_target_port_group_descriptor groups[];
};
struct scsi_target_group_data_extended {
@ -941,7 +942,7 @@ struct scsi_target_group_data_extended {
uint8_t format_type; /* STG_PDF_LENGTH or RPL_PDF_EXTENDED */
uint8_t implicit_transition_time;
uint8_t reserved[2];
struct scsi_target_port_group_descriptor groups[1];
struct scsi_target_port_group_descriptor groups[];
};