Commit b488561
committed
fix(LVMSR): set QCOW2 chain RW from the master on vdi_attach (#155)
Changing LVs to RW on coalesce on a remote host can clash with the master doing
LVM commands. It might even lead to LVM metadata corruption. With this
change, the `vdi_attach` will check if the chain is coalesceable on remote, if
so it will ask the master to change the status before continuing. It's copying
the behavior of changing LV sizes in `_prepareThin`.
Signed-off-by: Damien Thenot <damien.thenot@vates.tech>1 parent 602b7ac commit b488561
2 files changed
Lines changed: 56 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1534 | 1534 | | |
1535 | 1535 | | |
1536 | 1536 | | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
1537 | 1541 | | |
1538 | 1542 | | |
1539 | 1543 | | |
| |||
2259 | 2263 | | |
2260 | 2264 | | |
2261 | 2265 | | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
2262 | 2293 | | |
2263 | 2294 | | |
2264 | 2295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | 165 | | |
182 | 166 | | |
183 | 167 | | |
| |||
186 | 170 | | |
187 | 171 | | |
188 | 172 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 173 | | |
193 | 174 | | |
194 | | - | |
| 175 | + | |
195 | 176 | | |
196 | 177 | | |
197 | 178 | | |
| |||
249 | 230 | | |
250 | 231 | | |
251 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
252 | 256 | | |
253 | 257 | | |
254 | 258 | | |
| |||
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
| 266 | + | |
262 | 267 | | |
0 commit comments