Commit 8ad8dde
committed
refactor(linstor): add GC volume deletion helper
This adds the `mark_volume_for_deletion` function on the LINSTOR volume
manager to have a common implementation for marking a volume for later
deletion by the GC.
This also adds a constant that holds the volume UUID prefix that gets
added to such volumes to avoid duplicating this prefix in multiple
places.
Signed-off-by: Alexandre Sollier <alexandre.sollier@vates.tech>1 parent f3d5fa7 commit 8ad8dde
3 files changed
Lines changed: 24 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
1114 | 1115 | | |
1115 | 1116 | | |
1116 | 1117 | | |
1117 | | - | |
| 1118 | + | |
1118 | 1119 | | |
1119 | 1120 | | |
1120 | 1121 | | |
| |||
1479 | 1480 | | |
1480 | 1481 | | |
1481 | 1482 | | |
1482 | | - | |
1483 | | - | |
1484 | | - | |
| 1483 | + | |
1485 | 1484 | | |
1486 | 1485 | | |
1487 | 1486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
2916 | 2917 | | |
2917 | 2918 | | |
2918 | 2919 | | |
2919 | | - | |
| 2920 | + | |
2920 | 2921 | | |
2921 | 2922 | | |
2922 | 2923 | | |
| |||
3744 | 3745 | | |
3745 | 3746 | | |
3746 | 3747 | | |
3747 | | - | |
| 3748 | + | |
3748 | 3749 | | |
3749 | 3750 | | |
3750 | 3751 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
1143 | 1146 | | |
1144 | 1147 | | |
1145 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
1146 | 1163 | | |
1147 | 1164 | | |
1148 | 1165 | | |
| |||
2599 | 2616 | | |
2600 | 2617 | | |
2601 | 2618 | | |
2602 | | - | |
2603 | | - | |
2604 | | - | |
2605 | | - | |
| 2619 | + | |
2606 | 2620 | | |
2607 | 2621 | | |
2608 | 2622 | | |
| |||
0 commit comments