From 7b8e9e6c6d0eac3771e3ac49587f3374634cb1e5 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 17 Dec 2015 15:11:25 +0000 Subject: [PATCH] scst: Fix write-protected response (merge r6743 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6752 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_const.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/include/scst_const.h b/scst/include/scst_const.h index 21496f89f..bb6573b17 100644 --- a/scst/include/scst_const.h +++ b/scst/include/scst_const.h @@ -341,7 +341,7 @@ static inline int scst_sense_response_code(const uint8_t *sense) #define scst_sense_reported_luns_data_changed UNIT_ATTENTION, 0x3F, 0xE /* DATA_PROTECT is 7 */ -#define scst_sense_data_protect DATA_PROTECT, 0x00, 0 +#define scst_sense_data_protect DATA_PROTECT, 0x27, 0 /* ABORTED_COMMAND is 0xb */ #define scst_sense_aborted_command ABORTED_COMMAND, 0x00, 0