From 2f99683ba2a26ce8b78d77b6a5d9c0b172912338 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 26 Apr 2012 21:11:40 +0000 Subject: [PATCH] Basic stab for mandatory SEND DIAGNOSTIC command git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4240 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 818e60dd9..194e836dc 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -1048,6 +1048,11 @@ static enum compl_status_e vdisk_exec_maintenance_in(struct vdisk_cmd_params *p) return INVALID_OPCODE; } +static enum compl_status_e vdisk_exec_send_diagnostic(struct vdisk_cmd_params *p) +{ + return CMD_SUCCEEDED; +} + #define SHARED_OPS \ [SYNCHRONIZE_CACHE] = vdisk_synchronize_cache, \ [MODE_SENSE] = vdisk_exec_mode_sense, \ @@ -1069,7 +1074,8 @@ static enum compl_status_e vdisk_exec_maintenance_in(struct vdisk_cmd_params *p) [READ_CAPACITY] = vdisk_exec_read_capacity, \ [SERVICE_ACTION_IN] = vdisk_exec_srv_action_in, \ [UNMAP] = vdisk_exec_unmap, \ - [MAINTENANCE_IN] = vdisk_exec_maintenance_in, + [MAINTENANCE_IN] = vdisk_exec_maintenance_in, \ + [SEND_DIAGNOSTIC] = vdisk_exec_send_diagnostic, static const vdisk_op_fn blockio_ops[256] = { [READ_6] = blockio_exec_read,