A "TPG cannot be disabled" error is incorrectly thrown when attempting
to apply a configuration with a disabled TPG.
I think the intention of the code was to fail disable requests if the
$tpg/enable configfs path doesn't exist, and only write to the path if
it's current value doesn't match the requested setting... The logic was
just incorrect.
A "TPG cannot be disabled" error is incorrectly thrown when attempting to apply a configuration with a disabled TPG.
I think the intention of the code was to fail disable requests if the $tpg/enable configfs path doesn't exist, and only write to the path if it's current value doesn't match the requested setting... The logic was just incorrect.
Signed-off-by: David Disseldorp ddiss@suse.de