summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/taskmanager
diff options
context:
space:
mode:
authorSimon Rettberg2021-11-12 15:55:54 +0100
committerSimon Rettberg2021-11-12 15:55:54 +0100
commit1d7f30a13e156ee1a359f6f59a4ff994eac1ca90 (patch)
tree40d9face16369b0d84406c0916b024d331d3ec9c /src/main/java/org/openslx/taskmanager
parent[install-https] Make sure newline is between cert and key (diff)
downloadtmlite-bwlp-1d7f30a13e156ee1a359f6f59a4ff994eac1ca90.tar.gz
tmlite-bwlp-1d7f30a13e156ee1a359f6f59a4ff994eac1ca90.tar.xz
tmlite-bwlp-1d7f30a13e156ee1a359f6f59a4ff994eac1ca90.zip
[mount-store] Take greater care where the .notmounted flag is written
While the task manager should make sure only one invocation if mount-store is running, add a few extra checks whether a mount-point is pulled under our feet, or mounted when we don't expect it. This includes making sure dmsd is not accessing the share while we're trying to manipulate it.
Diffstat (limited to 'src/main/java/org/openslx/taskmanager')
-rw-r--r--src/main/java/org/openslx/taskmanager/tasks/MountVmStore.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/taskmanager/tasks/MountVmStore.java b/src/main/java/org/openslx/taskmanager/tasks/MountVmStore.java
index d0530cc..791fcad 100644
--- a/src/main/java/org/openslx/taskmanager/tasks/MountVmStore.java
+++ b/src/main/java/org/openslx/taskmanager/tasks/MountVmStore.java
@@ -47,7 +47,7 @@ public class MountVmStore extends SystemCommandTask
@Override
protected String[] initCommandLine()
{
- if ( !isRunning.compareAndSet( null, this ) ) {
+ while ( !isRunning.compareAndSet( null, this ) ) {
MountVmStore current = isRunning.get();
if ( current != null ) {
if ( current.equals( this ) ) {