From 640bdb111faa41d10100cc23e6d3af51528797f8 Mon Sep 17 00:00:00 2001 From: mulhern Date: Wed, 13 Mar 2024 09:10:52 -0400 Subject: [PATCH] set_blockdev_user_info:use Name type for pool_name Signed-off-by: mulhern --- src/engine/engine.rs | 2 +- src/engine/sim_engine/pool.rs | 2 +- src/engine/strat_engine/pool.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/engine.rs b/src/engine/engine.rs index f875ef4698..6adc6c1581 100644 --- a/src/engine/engine.rs +++ b/src/engine/engine.rs @@ -286,7 +286,7 @@ pub trait Pool: Debug + Send + Sync { /// by the uuid. fn set_blockdev_user_info( &mut self, - pool_name: &str, + pool_name: &Name, uuid: DevUuid, user_info: Option<&str>, ) -> StratisResult>; diff --git a/src/engine/sim_engine/pool.rs b/src/engine/sim_engine/pool.rs index ae1a655381..37797a3baa 100644 --- a/src/engine/sim_engine/pool.rs +++ b/src/engine/sim_engine/pool.rs @@ -654,7 +654,7 @@ impl Pool for SimPool { fn set_blockdev_user_info( &mut self, - _pool_name: &str, + _pool_name: &Name, uuid: DevUuid, user_info: Option<&str>, ) -> StratisResult> { diff --git a/src/engine/strat_engine/pool.rs b/src/engine/strat_engine/pool.rs index f6b7aa0f09..352e87e1d5 100644 --- a/src/engine/strat_engine/pool.rs +++ b/src/engine/strat_engine/pool.rs @@ -1151,7 +1151,7 @@ impl Pool for StratPool { #[pool_mutating_action("NoRequests")] fn set_blockdev_user_info( &mut self, - pool_name: &str, + pool_name: &Name, uuid: DevUuid, user_info: Option<&str>, ) -> StratisResult> {