From 34d4e3e69308244efec3387af3cd4cf37f2eee23 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 28 Oct 2010 18:40:18 +0000 Subject: [PATCH] Fix for Persistent Reservations problem with devices >2TB in size reported by Open-E (Artur Piechocki and Aleksey Kondratov) git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2486 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 3b007c4ee..f6d1a7fac 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -4976,7 +4976,8 @@ static int get_trans_len_serv_act_in(struct scst_cmd *cmd, uint8_t off) if ((cmd->cdb[1] & 0x1f) == SAI_READ_CAPACITY_16) { cmd->op_name = "READ CAPACITY(16)"; cmd->bufflen = be32_to_cpu(get_unaligned((__be32 *)&cmd->cdb[10])); - cmd->op_flags |= SCST_IMPLICIT_HQ|SCST_REG_RESERVE_ALLOWED; + cmd->op_flags |= SCST_IMPLICIT_HQ | SCST_REG_RESERVE_ALLOWED | + SCST_WRITE_EXCL_ALLOWED | SCST_EXCL_ACCESS_ALLOWED; } else cmd->op_flags |= SCST_UNKNOWN_LENGTH;