Skip to content
  • Boaz Harrosh's avatar
    [SCSI] libosd: OSD2r05: Prepare for rev5 attribute list changes · 71f32e31
    Boaz Harrosh authored
    
    
    In OSD2r05 draft each attribute list element header was changed
    so attribute-value would be 8 bytes aligned. In OSD2r01-r04
    it was aligned on 2 bytes. (This is because in OSD2r01 the complete
    element was 8 bytes padded at end but the header was not adjusted
    and caused permanent miss-alignment.)
    
    OSD1 elements are not padded and might be or might not be aligned.
    OSD1 is still supported.
    
    In this code we do all the code re-factoring to separate OSD1/OSD2
    differences but do not change actual wire format. All wire format
    changes will happen in one patch later, for bisect-ability.
    
    Signed-off-by: default avatarBoaz Harrosh <bharrosh@panasas.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
    71f32e31