svn commit: r268361 - head/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Mon Jul 7 08:58:37 UTC 2014


Author: mav
Date: Mon Jul  7 08:58:36 2014
New Revision: 268361
URL: http://svnweb.freebsd.org/changeset/base/268361

Log:
  Fix bugs for PERSISTENT RESERVE OUT bits in r268096.

Modified:
  head/sys/cam/ctl/ctl_cmd_table.c

Modified: head/sys/cam/ctl/ctl_cmd_table.c
==============================================================================
--- head/sys/cam/ctl/ctl_cmd_table.c	Mon Jul  7 08:42:04 2014	(r268360)
+++ head/sys/cam/ctl/ctl_cmd_table.c	Mon Jul  7 08:58:36 2014	(r268361)
@@ -127,7 +127,7 @@ const struct ctl_cmd_entry ctl_cmd_table
 						  CTL_FLAG_DATA_OUT |
 						  CTL_CMD_FLAG_ALLOW_ON_PR_RESV,
  CTL_LUN_PAT_NONE,
- 10, { 0x00, 0xff, 0, 0, 0xff, 0xff, 0xff, 0xff, 0x07}},
+ 10, { 0x01, 0xff, 0, 0, 0xff, 0xff, 0xff, 0xff, 0x07}},
 
 /* 02 RELEASE */
 {ctl_persistent_reserve_out, CTL_SERIDX_PRES_OUT, CTL_CMD_FLAG_ALLOW_ON_RESV |
@@ -138,7 +138,7 @@ const struct ctl_cmd_entry ctl_cmd_table
 						  CTL_FLAG_DATA_OUT |
 						  CTL_CMD_FLAG_ALLOW_ON_PR_RESV,
  CTL_LUN_PAT_NONE,
- 10, { 0x00, 0xff, 0, 0, 0xff, 0xff, 0xff, 0xff, 0x07}},
+ 10, { 0x02, 0xff, 0, 0, 0xff, 0xff, 0xff, 0xff, 0x07}},
 
 /* 03 CLEAR */
 {ctl_persistent_reserve_out, CTL_SERIDX_PRES_OUT, CTL_CMD_FLAG_ALLOW_ON_RESV |
@@ -149,7 +149,7 @@ const struct ctl_cmd_entry ctl_cmd_table
 						  CTL_FLAG_DATA_OUT |
 						  CTL_CMD_FLAG_ALLOW_ON_PR_RESV,
  CTL_LUN_PAT_NONE,
- 10, { 0x00, 0xff, 0, 0, 0xff, 0xff, 0xff, 0xff, 0x07}},
+ 10, { 0x03, 0xff, 0, 0, 0xff, 0xff, 0xff, 0xff, 0x07}},
 
 /* 04 PREEMPT */
 {ctl_persistent_reserve_out, CTL_SERIDX_PRES_OUT, CTL_CMD_FLAG_ALLOW_ON_RESV |
@@ -160,7 +160,7 @@ const struct ctl_cmd_entry ctl_cmd_table
 						  CTL_FLAG_DATA_OUT |
 						  CTL_CMD_FLAG_ALLOW_ON_PR_RESV,
  CTL_LUN_PAT_NONE,
- 10, { 0x00, 0xff, 0, 0, 0xff, 0xff, 0xff, 0xff, 0x07}},
+ 10, { 0x04, 0xff, 0, 0, 0xff, 0xff, 0xff, 0xff, 0x07}},
 
 /* 05 PREEMPT AND ABORT */
 {NULL, CTL_SERIDX_INVLD, CTL_CMD_FLAG_NONE, CTL_LUN_PAT_NONE},
@@ -174,7 +174,7 @@ const struct ctl_cmd_entry ctl_cmd_table
 						  CTL_FLAG_DATA_OUT |
 						  CTL_CMD_FLAG_ALLOW_ON_PR_RESV,
  CTL_LUN_PAT_NONE,
- 10, { 0x00, 0xff, 0, 0, 0xff, 0xff, 0xff, 0xff, 0x07}},
+ 10, { 0x06, 0xff, 0, 0, 0xff, 0xff, 0xff, 0xff, 0x07}},
 
 /* 07 REGISTER AND MOVE */
 {NULL, CTL_SERIDX_INVLD, CTL_CMD_FLAG_NONE, CTL_LUN_PAT_NONE},


More information about the svn-src-head mailing list