From 1804614564aa337cd41b23bcd7fde4f346bde123 Mon Sep 17 00:00:00 2001 From: Kamoltat Date: Thu, 17 Feb 2022 17:39:47 +0000 Subject: [PATCH] mon/MonCommands.h: fix target_size_ratio range The `target_size_ratio` should be 0.0 -> nolimit not limited to 0.0 -> 1.0 Fixes: https://tracker.ceph.com/issues/54316 Signed-off-by: Kamoltat (cherry picked from commit e5a5b81cf05e25b1e4f35ad498c7a5a1c29a7e45) Conflicts: src/mon/MonCommands.h - don't add "name=yes_i_really_mean_it,type=CephBool,req=false" --- src/mon/MonCommands.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 31a2d11aa49ba..73314523c26e4 100644 --- a/src/mon/MonCommands.h +++ b/src/mon/MonCommands.h @@ -1061,7 +1061,7 @@ COMMAND("osd pool create " "name=autoscale_mode,type=CephChoices,strings=on|off|warn,req=false " "name=bulk,type=CephBool,req=false " "name=target_size_bytes,type=CephInt,range=0,req=false " - "name=target_size_ratio,type=CephFloat,range=0|1,req=false",\ + "name=target_size_ratio,type=CephFloat,range=0.0,req=false",\ "create pool", "osd", "rw") COMMAND_WITH_FLAG("osd pool delete " "name=pool,type=CephPoolname " -- 2.39.5