From b7aa9921c5b60b1da159c16c38f62da59ed41eb3 Mon Sep 17 00:00:00 2001 From: mulhern Date: Tue, 9 Jul 2024 21:15:06 -0400 Subject: [PATCH] Return true from extend_thin_meta_device less Return true only if the method returned without error AND the amount to extend is non-zero. This is the same condition already used in extend_thin_data_device. Signed-off-by: mulhern --- src/engine/strat_engine/thinpool/thinpool.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/strat_engine/thinpool/thinpool.rs b/src/engine/strat_engine/thinpool/thinpool.rs index 93bf3312af..29ea5e05cd 100644 --- a/src/engine/strat_engine/thinpool/thinpool.rs +++ b/src/engine/strat_engine/thinpool/thinpool.rs @@ -1117,7 +1117,10 @@ impl ThinPool { meta_growth, ); - (ext.is_ok(), ext) + match ext { + Ok(Sectors(0)) | Err(_) => (false, ext), + Ok(_) => (true, ext), + } } else { (false, Ok(Sectors(0))) }