Commit 8817813
committed
fix(linstor): handle non-existing volumes when updating UUID
We may update the UUID of a volume that does not actually exist. This
happens when rolling back a clone operation that failed because the
physical volume could not be created.
This updates the `update_volume_uuid` function to save the `not-exists`
state of the volume that is being renamed, so that it is not wrongly
considered as existing after the UUID update completes.
Signed-off-by: Alexandre Sollier <alexandre.sollier@vates.tech>1 parent 4a002cd commit 8817813
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1060 | 1060 | | |
1061 | 1061 | | |
1062 | 1062 | | |
1063 | | - | |
| 1063 | + | |
1064 | 1064 | | |
1065 | 1065 | | |
| 1066 | + | |
1066 | 1067 | | |
1067 | 1068 | | |
1068 | 1069 | | |
| |||
1093 | 1094 | | |
1094 | 1095 | | |
1095 | 1096 | | |
1096 | | - | |
| 1097 | + | |
1097 | 1098 | | |
1098 | 1099 | | |
1099 | 1100 | | |
| |||
1138 | 1139 | | |
1139 | 1140 | | |
1140 | 1141 | | |
1141 | | - | |
| 1142 | + | |
| 1143 | + | |
1142 | 1144 | | |
1143 | 1145 | | |
1144 | 1146 | | |
| |||
0 commit comments