Skip to content

Commit

Permalink
Merge pull request #342 from dell/fix-private-target-lost
Browse files Browse the repository at this point in the history
Fix private target unmount issue in NodeUnpublishVolume
  • Loading branch information
donatwork authored Oct 28, 2024
2 parents bfd5617 + 75e7780 commit 2db312c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,10 @@ func unmountPrivMount(
return err
}
// remove private mount if we can
if len(mnts) == 1 && mnts[0].Path == target {
for _, m := range mnts {
if m.Path != target {
continue
}
if err := gofsutil.Unmount(ctx, target); err != nil {
return err
}
Expand Down

0 comments on commit 2db312c

Please sign in to comment.