]> 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)
commit03d4cabcfc4d813114934b181e5cae9ece762551
treec8ad4d540b5a2ba2e5b6b3ae12694ab68c092505
parent488219e14372a2b6a04782dbda857f9a45e057ca
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 6c880c674206314f65b7f1bdd624bc2a8e4ea7de
"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