Sense handling improvements

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4408 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-07-18 21:28:57 +00:00
parent 408b67c80f
commit 955113f493
16 changed files with 230 additions and 131 deletions
+5
View File
@@ -75,6 +75,11 @@ static int set_sense(uint8_t *buffer, int len, int key, int asc, int ascq)
return res;
}
/*
* ToDo: implement analogs of scst_set_invalid_field_in_cdb() and
* scst_set_invalid_field_in_parm_list()
*/
void set_cmd_error(struct vdisk_cmd *vcmd, int key, int asc, int ascq)
{
struct scst_user_scsi_cmd_reply_exec *reply = &vcmd->reply->exec_reply;
+1
View File
@@ -17,6 +17,7 @@
*/
#include <stdint.h>
#include <stddef.h>
#include <scst_user.h>