mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-19 14:34:18 +00:00
- scst_user docs updated
- Added notification about device change in fileio_tgt git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@700 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+5
-1
@@ -125,14 +125,18 @@ static inline void set_cmd_error_status(struct scst_user_scsi_cmd_reply_exec *re
|
||||
|
||||
static int set_sense(uint8_t *buffer, int len, int key, int asc, int ascq)
|
||||
{
|
||||
int res = 14;
|
||||
int res = SCST_STANDARD_SENSE_LEN;
|
||||
|
||||
EXTRACHECKS_BUG_ON(len < res);
|
||||
|
||||
memset(buffer, 0, res);
|
||||
|
||||
buffer[0] = 0x70; /* Error Code */
|
||||
buffer[2] = key; /* Sense Key */
|
||||
buffer[7] = 0x0a; /* Additional Sense Length */
|
||||
buffer[12] = asc; /* ASC */
|
||||
buffer[13] = ascq; /* ASCQ */
|
||||
|
||||
TRACE_BUFFER("Sense set", buffer, res);
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user