]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Crush: Ensuring at most num-rep osds are selected 2599/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 03:01:49 +0000 (20:01 -0700)
commit234b066ba04976783d15ff2abc3e81b6cc06fb10
tree8ae3fc430c77e9d3fe3d3a121aa2fb261326c762
parent38dde3d3e2507da660192e638b46d54184a392c7
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
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]