[PATCH 2/4] set Type Mask Valid (TMV) in response for PERSISTENT_RESERVE_IN's REPORT_CAPABILITIES service action

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Alexander Nezhinsky <nezhinsky@xxxxxxxxx>


Signed-off-by: Alexander Nezhinsky <nezhinsky@xxxxxxxxx>
---
 usr/spc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/usr/spc.c b/usr/spc.c
index 0289730..cbe369a 100644
--- a/usr/spc.c
+++ b/usr/spc.c
@@ -1002,6 +1002,8 @@ static int spc_pr_report_capabilities(int host_no, struct scsi_cmd *cmd)
 	/* we don't set any capability for now */
 
 	/* Persistent Reservation Type Mask format */
+	buf[3] |= 0x80; /* Type Mask Valid (TMV) */
+
 	buf[4] |= 0x80; /* PR_TYPE_EXCLUSIVE_ACCESS_ALLREG */
 	buf[4] |= 0x40; /* PR_TYPE_EXCLUSIVE_ACCESS_REGONLY */
 	buf[4] |= 0x20; /* PR_TYPE_WRITE_EXCLUSIVE_REGONLY */
-- 
1.7.9.6

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux