From 5cef0851285eb48e20d3d1c99c129332e3622a13 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 14 Jun 2019 03:04:26 +0000 Subject: [PATCH] scst: Add support for the SCSI SET CAPACITY command This is a command for tape devices. See also the ANSI T10 SSC document. Signed-off-by: Rob Turk [ bvanassche: added patch description ] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8422 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 ed2a25e90..9c59e2352 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -717,6 +717,11 @@ static const struct scst_sdbops scst_scsi_op_table[] = { .info_op_flags = FLAG_NONE, .info_lba_off = 2, .info_lba_len = 2, .get_cdb_info = get_cdb_info_lba_2_none}, + {.ops = 0x0B, .devkey = " O ", + .info_op_name = "SET CAPACITY", + .info_data_direction = SCST_DATA_NONE, + .info_op_flags = SCST_WRITE_MEDIUM|SCST_STRICTLY_SERIALIZED, + .get_cdb_info = get_cdb_info_none}, {.ops = 0x0B, .devkey = " O ", .info_op_name = "SLEW AND PRINT", .info_data_direction = SCST_DATA_NONE,