From 3a200b6976de169b8a1c7e529bd15675be517d2c Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 15 Jul 2022 14:13:29 +0200 Subject: [PATCH] rbd: use IsLikelyNotMountPoint() to prevent systemd log messages Signed-off-by: Niels de Vos --- internal/rbd/nodeserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rbd/nodeserver.go b/internal/rbd/nodeserver.go index bd7a3facb..da7fe96ad 100644 --- a/internal/rbd/nodeserver.go +++ b/internal/rbd/nodeserver.go @@ -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 }