This repository was archived by the owner on Oct 22, 2024. It is now read-only.
Commit 55fda9d
committed
pmem-csi-driver: idempotent removal of target dir in NodeUnpublishVolume
If the target directory already was removed earlier, os.Remove returns
ErrNotExist, which must be ignored.
Found accidentally on Clear Linux during the "can mount again after
restart" test: there (and not on Fedora!) the target directory created
by the driver didn't survive the sudden power loss, and then
NodeUnpublishVolume failed.1 parent 70fa3e8 commit 55fda9d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
| 422 | + | |
422 | 423 | | |
423 | 424 | | |
| 425 | + | |
424 | 426 | | |
425 | 427 | | |
426 | 428 | | |
| |||
0 commit comments