Skip to content

Commit

Permalink
Fix cleaning logic
Browse files Browse the repository at this point in the history
Signed-off-by: dongyun.xzh <dongyun.xzh@alibaba-inc.com>
  • Loading branch information
TrafalgarZZZ committed Mar 7, 2023
1 parent 378e86e commit 0d22048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion csi/shell/check_mount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ do
done

count=0
while stat $ConditionPathIsMountPoint
while ! stat $ConditionPathIsMountPoint
do
sleep 3
count=`expr $count + 1`
Expand Down
1 change: 1 addition & 0 deletions pkg/csi/plugins/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ func cleanUpBrokenMountPoint(mountPoint string) error {
return errors.Wrapf(mounter.Unmount(mountPoint), "failed to unmount %s", mountPoint)
}
glog.Infof("Found broken mount point %s, successfully umounted it", mountPoint)
return nil
}
}
}
Expand Down

0 comments on commit 0d22048

Please sign in to comment.