• R
    target: Fix reporting of supported VPD pages · b2eb705e
    Roland Dreier 提交于
    The current handling of VPD page 00h (Supported VPD Pages) for INQUIRY
    commands has a couple of problems:
    
     - The page length field is incorrectly set to 3, so the entry for 86h
       (Extended INQUIRY Data) is ignored since it is in the fourth slot.
     - Even though the code handles pages B0h and B2h, those pages aren't
       mentioned in the Supported VPD Pages list, so eg the Linux SCSI stack
       won't actually try to use them.
    
    Fix these problems and make things more robust to avoid future problems
    by moving to a table of supported VPD pages, which means that any added
    VPD page support will automatically get reported on page 0.
    Signed-off-by: NRoland Dreier <roland@purestorage.com>
    Reviewed-by: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
    b2eb705e
target_core_cdb.c 31.1 KB