Fix race in lcow snapshot scratch.vhdx creation#2682
Fix race in lcow snapshot scratch.vhdx creation#2682dmcgowan merged 1 commit intocontainerd:masterfrom
Conversation
Signed-off-by: Justin Terry (VM) <[email protected]>
|
@crosbymichael @dmcgowan - Since the snapshotter runs in proc there is no need for a file lock. The issue here was that if the creation fails after the lock was taken the lock file was leaked to the file system. Once the lock file was present because of opening with flags |
Codecov Report
@@ Coverage Diff @@
## master #2682 +/- ##
======================================
Coverage 45% 45%
======================================
Files 92 92
Lines 10114 10114
======================================
Hits 4552 4552
Misses 4842 4842
Partials 720 720
Continue to review full report at Codecov.
|
|
LGTM |
|
LGTM Since this is running inside of a transaction context there should already be a file level lock on the bolt database. |
Signed-off-by: Justin Terry (VM) [email protected]