mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
When a 'zkey change' command is used to change (i.e. set) the volume association of a key, and the new volume association contains a volume that is already assigned to the key to be changed, the command fails with an error that the volume is already associated to the key. This commit fixes the problems and allows to set such a volume association. When setting a new association the current association of the key to be changed is of no relevance, since the set operation replaces the current association with the new association. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>