|
From: Bart V. A. <bar...@sa...> - 2015-04-03 08:50:53
|
On 04/03/15 10:39, Tommy Li wrote:
> I need disable VAAI feature. Could please tell me how to do that?
Hello Tommy,
Are you using one of the scst_vdisk handlers or SCSI pass-through ?
If you are using one of the scst_vdisk handlers, applying the
(untested) patch below, rebuilding and reinstalling SCST should be
sufficient:
diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c
index bcd9f14..6a17aa5 100644
--- a/scst/src/dev_handlers/scst_vdisk.c
+++ b/scst/src/dev_handlers/scst_vdisk.c
@@ -2152,9 +2152,6 @@ static const struct scst_opcode_descriptor scst_op_descr_read_toc = {
[READ_CAPACITY] = vdisk_exec_read_capacity, \
[SERVICE_ACTION_IN] = vdisk_exec_srv_action_in, \
[UNMAP] = vdisk_exec_unmap, \
- [WRITE_SAME] = vdisk_exec_write_same, \
- [WRITE_SAME_16] = vdisk_exec_write_same, \
- [COMPARE_AND_WRITE] = vdisk_exec_caw, \
[ORWRITE_16] = vdisk_exec_orwrite, \
[MAINTENANCE_IN] = vdisk_exec_maintenance_in, \
[SEND_DIAGNOSTIC] = vdisk_exec_send_diagnostic, \
Bart.
|