]> 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:59:15 +0000 (17:59 +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 31a2d11aa49baa4e86319dbe151a2ccd3cdfa8fe..73314523c26e4a8b6260ac50a90f29b38025480b 100644 (file)
@@ -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 "