From 833d83a48fda1c01fbd7e7ee39f6fd39341d7b5a Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 23 Mar 2021 16:18:03 +0000 Subject: [PATCH] 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 [ bvanassche: wrote patch description ] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9367 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 30a86be3f..17b5cb7d7 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -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,