]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ea74aba366a33eaa78f56ebe4fb52c900854bd2
treec8ad4d540b5a2ba2e5b6b3ae12694ab68c092505
parent5aa7c9a945724e8001c8c807e685c79e8f8baa13
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 0d69b2a63670582aab6db0a0bebfb0c1e3ffad0f
"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