Date: Tue, 22 Jun 2010 04:40:50 +0000 (UTC) From: Matt Jacob <mjacob@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r209412 - stable/8/sys/cam/scsi Message-ID: <201006220440.o5M4eoN2037589@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjacob Date: Tue Jun 22 04:40:50 2010 New Revision: 209412 URL: http://svn.freebsd.org/changeset/base/209412 Log: This is an MFC of 209188 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. Modified: stable/8/sys/cam/scsi/scsi_all.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) stable/8/sys/dev/ixgbe/ (props changed) stable/8/sys/dev/xen/xenpci/ (props changed) stable/8/sys/geom/sched/ (props changed) Modified: stable/8/sys/cam/scsi/scsi_all.h ============================================================================== --- stable/8/sys/cam/scsi/scsi_all.h Tue Jun 22 04:38:41 2010 (r209411) +++ stable/8/sys/cam/scsi/scsi_all.h Tue Jun 22 04:40:50 2010 (r209412) @@ -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[]; };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006220440.o5M4eoN2037589>