Incorrect description in document at chapter 'Crush Operation'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux