[Stgt-devel] [Patch 2/8 ] Combine INQUIRY into a	common	spc_inquiry routine.
    Ming Zhang 
    blackmagic02881
       
    Wed May 23 15:55:35 CEST 2007
    
    
  
On Wed, 2007-05-23 at 13:01 +1000, Mark Harvey wrote:
> +struct physicalAttributes {
> +       char    scsi_id[SCSI_ID_LEN];
> +       char    scsi_sn[SCSI_SN_LEN];
> +
> +       /* SCSI Inquiry Params */
> +       char    VendorIdent[9];
> +       char    ProductIdent[17];
> +       char    ProductRev[5];
> +       uint16_t        version_desc1;
> +       uint16_t        version_desc2;
> +       uint16_t        version_desc3;
> +       uint16_t        version_desc4;
> +       uint16_t        version_desc5;
> +       uint16_t        version_desc6;
can we make it uint16_t *version_desc, which point to a dynamically
allocated array with last entry as 0?
> +
> +       char    isRemovable;    /* Removable media */
> +       char    onLine;
> +       char    reset;          /* Power-on or reset */
> +       char    sense_format;   /* sense data format */
> +};
> + 
    
    
More information about the stgt
mailing list