• Bernhard Kohl's avatar
    target: reintroduce some obsolete SCSI-2 commands · 1a1ff38c
    Bernhard Kohl authored
    With kernel 3.6 some obsolete SCSI-2 commands including SEEK_10 have
    have been removed by commit 1fd032ee
    "target: move code for CDB emulation".
    
    There are still clients out there which use these old SCSI-2 commands.
    This mainly happens when running VMs with legacy guest systems,
    connected via SCSI command pass-through to iSCSI targets. Make them
    happy and return status GOOD.
    
    Many real SCSI disks or external iSCSI storage devices still support
    these old commands. So let's make LIO backward compatible as well.
    
    This patch adds support for the previously removed SEEK_10 and
    additionally the SEEK_6 and REZERO_UNIT commands.
    Signed-off-by: default avatarBernhard Kohl <bernhard.kohl@nsn.com>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    1a1ff38c
target_core_sbc.c 16.4 KB