From 49eec92038672e2d10f8e903215af45976a71f0a Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Wed, 31 Mar 2021 15:06:23 -0400 Subject: [PATCH] agent: log the tag and mount point if it is already mounted On commit 17e9a2cff5c8b it was introduced a guard for the case the mount point is already mounted. Instead of log only the mount tag ("kataShared") with this change it will print both tag and mount point path. Fixes: #1398 Signed-off-by: Wainer dos Santos Moschetta --- src/agent/src/mount.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/agent/src/mount.rs b/src/agent/src/mount.rs index be4bcfadba..b7b7640f62 100644 --- a/src/agent/src/mount.rs +++ b/src/agent/src/mount.rs @@ -405,7 +405,10 @@ fn mount_storage(logger: &Logger, storage: &Storage) -> Result<()> { // If so, skip doing the mount. This facilitates mounting the sharedfs automatically // in the guest before the agent service starts. if storage.source == MOUNT_GUEST_TAG && is_mounted(&storage.mount_point)? { - warn!(logger, "kataShared already mounted, ignoring..."); + warn!( + logger, + "{} already mounted on {}, ignoring...", MOUNT_GUEST_TAG, &storage.mount_point + ); return Ok(()); }