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

nezhinsky at gmail.com nezhinsky at gmail.com
Sun Dec 23 09:41:13 CET 2012


From: Alexander Nezhinsky <nezhinsky at gmail.com>


Signed-off-by: Alexander Nezhinsky <nezhinsky at gmail.com>
---
 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 at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list