target: Don't return an error if disabling unsupported features
authorAndy Grover <agrover@redhat.com>
Wed, 30 Nov 2011 20:11:50 +0000 (12:11 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 6 Dec 2011 06:00:58 +0000 (06:00 +0000)
commitc638830d040696ff2bae07785fd4277e7e3fe7c4
treed81f55b5ecbbecadcd3dc81edfd9f0dedc9901b8
parent65b0c78d5a0ca2cb82b7b9f54f855896e0d7fc10
target: Don't return an error if disabling unsupported features

If an attribute is present (but not yet supported) it should be OK
to write 0 (a no-op) to the attribute.

This is an issue because userspace should be able to save and restore all
set attribute values without error.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c