]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Crush: Ensuring at most num-rep osds are selected 2643/head
authorJohnu George <johnugeo@cisco.com>
Mon, 29 Sep 2014 17:07:44 +0000 (10:07 -0700)
committerJohnu George <johnugeo@cisco.com>
Sat, 4 Oct 2014 18:45:32 +0000 (11:45 -0700)
commit548be0b2aea18ed3196ef8f0ab5f58a66e3a9af4
tree777f9b592b86444ab3379a1ef857ce5e07f39062
parente30c570ce691a994898b4a933c57e7ae014cdc30
Crush: Ensuring at most num-rep osds are selected

Crush temporary buffers are allocated as per replica size configured
by the user.When there are more final osds (to be selected as per
rule) than the replicas, buffer overlaps and it causes crash.Now, it
ensures that at most num-rep osds are selected even if more number of
osds are allowed by indep rule. The fix for firstn rules is already
merged as part of bug #9492. Required test files are added.

Fixes: #9492
Signed-off-by: Johnu George johnugeo@cisco.com
(cherry picked from commit 234b066ba04976783d15ff2abc3e81b6cc06fb10)
src/crush/mapper.c
src/test/cli/crushtool/test-map-firstn-indep.t [new file with mode: 0644]
src/test/cli/crushtool/test-map-firstn-indep.txt [new file with mode: 0644]