Commit 1b8b4d6d authored by Andy Grover's avatar Andy Grover Committed by Jiri Slaby
Browse files

target: Don't allow setting WC emulation if device doesn't support

commit 07b8dae3 upstream.

Just like for pSCSI, if the transport sets get_write_cache, then it is
not valid to enable write cache emulation for it. Return an error.

see https://bugzilla.redhat.com/show_bug.cgi?id=1082675



Reviewed-by: default avatarChris Leech <cleech@redhat.com>
Signed-off-by: default avatarAndy Grover <agrover@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 730cef68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment