Skip to content

Commit

Permalink
use k8s mount util for bind volume
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilbarge committed Apr 22, 2024
1 parent 72c2527 commit a4216ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/csi/service/osutils/linux_os_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ func (osUtils *OsUtils) PublishMountVol(
}
log.Debugf("PublishMountVolume: Attempting to bind mount %q to %q with mount flags %v",
params.StagingTarget, params.Target, mntFlags)
if err := gofsutil.BindMount(ctx, params.StagingTarget, params.Target, mntFlags...); err != nil {
if err := osUtils.Mounter.Mount(params.StagingTarget, params.Target, "", mntFlags); err != nil {
return nil, logger.LogNewErrorCodef(log, codes.Internal,
"error mounting volume. Parameters: %v err: %v", params, err)
}
Expand Down

0 comments on commit a4216ce

Please sign in to comment.