-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(csi-node): don't unstage if bind mount exists
If an application creates a bind mount for our volume unstaging can be very troublesome as it leaves the mount in a really bad state. Even if we reconnect the device, it's very unlikely things won't recover. This commit adds a check on node_unstage for unknown mounts (as in, not a csi publish mount). Should there be any we output this as a trace and simply fail the unstage. It's up to the user to clean up non-csi mounts, otherwise we can never unstage. Signed-off-by: Tiago Castro <[email protected]>
- Loading branch information
1 parent
94c5a3e
commit bd60aa9
Showing
2 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters