Skip to content

Commit

Permalink
idempotent unmount from NodeUnstageVolume / NodeUnpublishVolume
Browse files Browse the repository at this point in the history
  • Loading branch information
dobsonj committed May 17, 2023
1 parent 6889825 commit 1b1e877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/driver/mount_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (m *NodeMounter) Unpublish(path string) error {
}

func (m *NodeMounter) Unstage(path string) error {
err := m.Unmount(path)
err := mountutils.CleanupMountPoint(path, m, false)
// Ignore the error when it contains "not mounted", because that indicates the
// world is already in the desired state
//
Expand Down

0 comments on commit 1b1e877

Please sign in to comment.