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 16, 2023
1 parent b57d85d commit c0665b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/driver/mount_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ func (m *NodeMounter) parseFsInfoOutput(cmdOutput string, spliter string, blockS
}

func (m *NodeMounter) Unpublish(path string) error {
return m.Unmount(path)
return mountutils.CleanupMountPoint(path, m, false)
}

func (m *NodeMounter) Unstage(path string) error {
return m.Unmount(path)
return mountutils.CleanupMountPoint(path, m, false)
}

func (m *NodeMounter) NewResizeFs() (Resizefs, error) {
Expand Down

0 comments on commit c0665b3

Please sign in to comment.