Commit 37373c1
devmapper: deferred remove can break consistency
dmsetup remove with "--deferred" option may remove
device in kernel latter than the time when its device
info has been removed in database, causing the "file
exists" error as previous commit.
This error really happens in our extreme testing:
power off server and disk disappear while k8s is
creating/deleting pods.
The fix reveals a testcase bug in
"TestSnapshotterSuite/RemoveIntermediateSnapshot",
for block device snapshot, we should umount the
snapshot before removing it.
Signed-off-by: Eric Ren <[email protected]>1 parent 89043f9 commit 37373c1
2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
505 | 510 | | |
506 | 511 | | |
507 | 512 | | |
| |||
540 | 545 | | |
541 | 546 | | |
542 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
543 | 552 | | |
544 | 553 | | |
545 | 554 | | |
| |||
0 commit comments