Skip to content
Commit 448ba904 authored by Andy Grover's avatar Andy Grover Committed by Nicholas Bellinger
Browse files

target: Allow non-supporting backends to set pi_prot_type to 0



Userspace tools assume if a value is read from configfs, it is valid
and will not cause an error if the same value is written back. The only
valid value for pi_prot_type for backends not supporting DIF is 0, so allow
this particular value to be set without returning an error.

Reported-by: default avatarKrzysztof Chojnowski <frirajder@gmail.com>
Signed-off-by: default avatarAndy Grover <agrover@redhat.com>
Reviewed-by: default avatarSagi Grimberg <sagig@mellanox.com>
Cc: stable@vger.kernel.org # 3.14+
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent d1db0eea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment