scst: Add support for SERVICE ACTION IN(12)

HP LTO 3 and later and Oracle/STK T10000 tape drives support the READ MEDIA
SERIALNO command, one of the SERVICE ACTION IN(12) commands.

Signed-off-by: Rob Turk <robtu@rtist.nl>
[ bvanassche: wrote patch description ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9367 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-03-23 16:18:03 +00:00
parent ebf837baae
commit 833d83a48f

View File

@@ -1533,6 +1533,12 @@ static const struct scst_sdbops scst_scsi_op_table[] = {
.info_op_flags = FLAG_NONE,
.info_len_off = 6, .info_len_len = 4,
.get_cdb_info = get_cdb_info_len_4},
{.ops = 0xAB, .devkey = " O ",
.info_op_name = "SERVICE ACTION IN(12)",
.info_data_direction = SCST_DATA_READ,
.info_op_flags = FLAG_NONE,
.info_len_off = 6, .info_len_len = 4,
.get_cdb_info = get_cdb_info_len_4},
{.ops = 0xAC, .devkey = " O ",
.info_op_name = "ERASE(12)",
.info_data_direction = SCST_DATA_NONE,