From 2e6c29d904e505d773b3726dcc171e3874aa88f5 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 4 Oct 2013 23:58:16 +0000 Subject: [PATCH] Add FORMAT MEDIUM tape command to scst_scsi_op_table git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5022 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index ffb59c35b..45c9d48ef 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -278,6 +278,11 @@ static const struct scst_sdbops scst_scsi_op_table[] = { .info_data_direction = SCST_DATA_NONE, .info_op_flags = SCST_LONG_TIMEOUT|SCST_WRITE_MEDIUM, .get_cdb_info = get_cdb_info_fmt}, + {.ops = 0x04, .devkey = " O ", + .info_op_name = "FORMAT MEDIUM", + .info_data_direction = SCST_DATA_WRITE, + .info_op_flags = SCST_LONG_TIMEOUT|SCST_WRITE_MEDIUM, + .info_len_off = 3, .get_cdb_info = get_cdb_info_len_2}, {.ops = 0x04, .devkey = " O ", .info_op_name = "FORMAT", .info_data_direction = SCST_DATA_NONE,