From 98ba211a3441d1c66f77d76b920c8c1b9fb0937a Mon Sep 17 00:00:00 2001 From: Jiang Liu Date: Sun, 6 Aug 2023 10:46:01 +0800 Subject: [PATCH] agent: fix a bug in update_ephemeral_mounts() There's a bug in function update_ephemeral_mounts() which only handles the first storage object and ignores all other storage objects. Fixes: #7551 Signed-off-by: Jiang Liu --- src/agent/src/mount.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/src/mount.rs b/src/agent/src/mount.rs index fdc314fd8f..1dc81810fe 100644 --- a/src/agent/src/mount.rs +++ b/src/agent/src/mount.rs @@ -314,14 +314,14 @@ pub async fn update_ephemeral_mounts( "mount-options" => options.as_str(), ); - return baremount( + baremount( src_path, mount_path, storage.fstype.as_str(), flags, options.as_str(), &logger, - ); + )?; } } _ => {