From c75bd893095ac4685ec054dc001dd3ce5a0435d3 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 0ae05172e3..c61a097832 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))) }