target: reintroduce some obsolete SCSI-2 commands
authorBernhard Kohl <bernhard.kohl@nsn.com>
Wed, 24 Oct 2012 13:53:58 +0000 (15:53 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 26 Oct 2012 23:49:40 +0000 (16:49 -0700)
commit1a1ff38c4cebf23be8bf0009a76b082a13bd25cb
treec8ad4d540b5a2ba2e5b6b3ae12694ab68c092505
parente13d5fef88c40b87c8430f8274c3a9ca32ef90bc
target: reintroduce some obsolete SCSI-2 commands

With kernel 3.6 some obsolete SCSI-2 commands including SEEK_10 have
have been removed by commit 1fd032ee10d2816c947f5d5b9abda95e728f0a8f
"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: Bernhard Kohl <bernhard.kohl@nsn.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c