mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 13:16:34 +00:00
Add SYNCHRONIZE_CACHE(16)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5415 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -413,6 +413,10 @@ static inline int scst_sense_response_code(const uint8_t *sense)
|
||||
#define WRITE_SAME_16 0x93
|
||||
#endif
|
||||
|
||||
#ifndef SYNCHRONIZE_CACHE_16
|
||||
#define SYNCHRONIZE_CACHE_16 0x91
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
|
||||
/*
|
||||
* From <scsi/scsi.h>. See also commit
|
||||
|
||||
@@ -1399,6 +1399,7 @@ static enum compl_status_e vdisk_invalid_opcode(struct vdisk_cmd_params *p)
|
||||
|
||||
#define SHARED_OPS \
|
||||
[SYNCHRONIZE_CACHE] = vdisk_synchronize_cache, \
|
||||
[SYNCHRONIZE_CACHE_16] = vdisk_synchronize_cache, \
|
||||
[MODE_SENSE] = vdisk_exec_mode_sense, \
|
||||
[MODE_SENSE_10] = vdisk_exec_mode_sense, \
|
||||
[MODE_SELECT] = vdisk_exec_mode_select, \
|
||||
|
||||
@@ -335,6 +335,7 @@ static int do_exec(struct vdisk_cmd *vcmd)
|
||||
}
|
||||
break;
|
||||
case SYNCHRONIZE_CACHE:
|
||||
case SYNCHRONIZE_CACHE_16:
|
||||
{
|
||||
int immed = cdb[1] & 0x2;
|
||||
if (data_len == 0)
|
||||
|
||||
Reference in New Issue
Block a user