summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-10-05 11:41:52 +0000
committermav <mav@FreeBSD.org>2015-10-05 11:41:52 +0000
commit125fd313ca33a0f626dc757d02251bbf9e279412 (patch)
treeaa51a7e297a2435fb5e4b873540a0ef049925329 /sys/cam
parentcd2919d633a7c0693cc40a109a72d0247c589704 (diff)
downloadFreeBSD-src-125fd313ca33a0f626dc757d02251bbf9e279412.zip
FreeBSD-src-125fd313ca33a0f626dc757d02251bbf9e279412.tar.gz
MFC r288368: Don't report SYNC_NV bit set in SYNCHRONIZE CACHE as error.
While this bit is obsolete in SBC-3, behavior controlled by it is allowed on device discretion.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ctl/ctl_cmd_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/ctl/ctl_cmd_table.c b/sys/cam/ctl/ctl_cmd_table.c
index 0f0cc5a..4636342 100644
--- a/sys/cam/ctl/ctl_cmd_table.c
+++ b/sys/cam/ctl/ctl_cmd_table.c
@@ -760,7 +760,7 @@ const struct ctl_cmd_entry ctl_cmd_table[256] =
{ctl_sync_cache, CTL_SERIDX_SYNC, CTL_CMD_FLAG_OK_ON_DIRECT |
CTL_FLAG_DATA_NONE,
CTL_LUN_PAT_WRITE,
- 10, {0x02, 0xff, 0xff, 0xff, 0xff, 0, 0xff, 0xff, 0x07}},
+ 10, {0x06, 0xff, 0xff, 0xff, 0xff, 0, 0xff, 0xff, 0x07}},
/* 36 LOCK UNLOCK CACHE(10) */
{NULL, CTL_SERIDX_INVLD, CTL_CMD_FLAG_NONE, CTL_LUN_PAT_NONE},
@@ -1119,7 +1119,7 @@ const struct ctl_cmd_entry ctl_cmd_table[256] =
{ctl_sync_cache, CTL_SERIDX_SYNC, CTL_CMD_FLAG_OK_ON_DIRECT |
CTL_FLAG_DATA_NONE,
CTL_LUN_PAT_WRITE,
- 16, {0x02, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+ 16, {0x06, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0, 0x07}},
/* 92 LOCK UNLOCK CACHE(16) */
OpenPOWER on IntegriCloud