rbd: use IsLikelyNotMountPoint() to prevent systemd log messages

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2022-07-15 14:13:29 +02:00 committed by mergify[bot]
parent 533994daff
commit 3a200b6976

View File

@ -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) { func (ns *NodeServer) createTargetMountPath(ctx context.Context, mountPath string, isBlock bool) (bool, error) {
// Check if that mount path exists properly // Check if that mount path exists properly
notMnt, err := mount.IsNotMountPoint(ns.Mounter, mountPath) notMnt, err := ns.Mounter.IsLikelyNotMountPoint(mountPath)
if err == nil { if err == nil {
return notMnt, nil return notMnt, nil
} }