Hi,all
  I found content below at 
http://ceph.com/docs/master/rados/operations/crush-map :
     
      step choose firstn {num} type {bucket-type}
        Description: Selects the number of buckets of the given type. The 
number is usually the number of replicas in the pool (i.e., pool size).
            If {num} == 0, choose pool-num-replicas buckets (all available).
            If {num} > 0 && < pool-num-replicas, choose that many buckets.
            If {num} < 0, it means pool-num-replicas - {num}.
  
  However, corresponding source code is that (V0.87, mapper.c , 
crush_do_rule(...)) :
    if (numrep <= 0) {
      numrep += result_max;
      if (numrep <= 0)
        continue;
    }

  I think the correct description is 'If {num} < 0, it means pool-num-replicas 
+ {num}'.

--------------
TongLei | XOR Media

Storage Application Department of XOR Media China

Tel. 86-21-61213323  Fax. 86-21-52065237
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to