commit | fde9f50f80fe89a9115b4bfa773017272597d85d | [log] [tgz] |
---|---|---|
author | Nicholas Bellinger <nab@linux-iscsi.org> | Fri Feb 13 23:28:27 2015 +0000 |
committer | Nicholas Bellinger <nab@linux-iscsi.org> | Sat Feb 14 02:09:46 2015 +0000 |
tree | 8b1a67b39f2e3b64aafd32b95ccd8fb4a96314f4 | |
parent | afd73f1b60fc5883ea4982f68e9522e77b28f1e5 [diff] |
target: Add sanity checks for DPO/FUA bit usage This patch adds a sbc_check_dpofua() function that performs sanity checks for DPO/FUA command bits. It introduces checks to fail when either bit is set, but the backend device is not advertising support for them. It also moves the existing cmd->se_cmd_flags |= SCF_FUA assignement into the new helper function. Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>