]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCommands.h: fix target_size_ratio range
authorKamoltat <ksirivad@redhat.com>
Thu, 17 Feb 2022 17:39:47 +0000 (17:39 +0000)
committerKamoltat <ksirivad@redhat.com>
Tue, 15 Mar 2022 17:50:49 +0000 (17:50 +0000)
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 <ksirivad@redhat.com>
(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

index 948b67501864361f561b84f484047369b7422c73..37bb6152e0da3ea20f4fe1b33c3088c65f9ab468 100644 (file)
@@ -1086,7 +1086,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 "