mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
rbd: use IsLikelyNotMountPoint() to prevent systemd log messages
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
533994daff
commit
3a200b6976
@ -814,7 +814,7 @@ func (ns *NodeServer) mountVolume(ctx context.Context, stagingPath string, req *
|
||||
|
||||
func (ns *NodeServer) createTargetMountPath(ctx context.Context, mountPath string, isBlock bool) (bool, error) {
|
||||
// Check if that mount path exists properly
|
||||
notMnt, err := mount.IsNotMountPoint(ns.Mounter, mountPath)
|
||||
notMnt, err := ns.Mounter.IsLikelyNotMountPoint(mountPath)
|
||||
if err == nil {
|
||||
return notMnt, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user