From: Kamoltat Date: Thu, 17 Feb 2022 17:39:47 +0000 (+0000) Subject: mon/MonCommands.h: fix target_size_ratio range X-Git-Tag: v15.2.17~59^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8aa2d1738fb787a3e00581d6ace73e3c85b13c86;p=ceph.git 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 - trivial fix --- diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 21635974c606..5da998a94d6e 100644 --- a/src/mon/MonCommands.h +++ b/src/mon/MonCommands.h @@ -1001,7 +1001,7 @@ COMMAND("osd pool create " "name=pg_num_min,type=CephInt,range=0,req=false " "name=autoscale_mode,type=CephChoices,strings=on|off|warn,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 "