Re: question about the data structure of crush_map

2013-12-01 Thread Sage Weil
On Sun, 1 Dec 2013, Lipeng Wan wrote: > Hi Dong, > > Thanks for your reply. Then is it valid to access the memory space > specified by that negative id? You'll notice that every time we index the bucket array, the index is something like -1 - id so that -1 maps to the first item, -2 to

Re: /usr/bin/ld: cannot find -lboost_program_options

2013-12-01 Thread Noah Watkins
Hi Charles, Out of curiousity, do you have a config.log handy? A recent change to configure.ac should have caught the absense of the boost program options library before this step. On Sun, Dec 1, 2013 at 7:08 PM, charles L wrote: > i reinstalled ...libboost-program-options-dev and it fixed the i

Re: question about the data structure of crush_map

2013-12-01 Thread Dong Yuan
In my opinion, w[i] is less than -1. On 2 December 2013 11:53, Lipeng Wan wrote: > Hi Dong, > > Thanks for your reply. Then is it valid to access the memory space > specified by that negative id? > > L Wan > > On Sun, Dec 1, 2013 at 10:31 PM, Dong Yuan wrote: >> If my memory serves me well, nega

Re: question about the data structure of crush_map

2013-12-01 Thread Lipeng Wan
Hi Dong, Thanks for your reply. Then is it valid to access the memory space specified by that negative id? L Wan On Sun, Dec 1, 2013 at 10:31 PM, Dong Yuan wrote: > If my memory serves me well, negative id means buckets (root, room, > rack, cabinet, etc.), well positive means osds. > > On 2 Dec

Re: question about the data structure of crush_map

2013-12-01 Thread Dong Yuan
If my memory serves me well, negative id means buckets (root, room, rack, cabinet, etc.), well positive means osds. On 2 December 2013 11:20, Lipeng Wan wrote: > Hi guys, > > I am reading the source code of ceph and trying to understand the data > structure of crush_map. Now I am confused by the

question about the data structure of crush_map

2013-12-01 Thread Lipeng Wan
Hi guys, I am reading the source code of ceph and trying to understand the data structure of crush_map. Now I am confused by the use of "struct crush_bucket **buckets" in function "int crush_do_rule(...)" in src/crush/mapper.c. It seems that the index of array "map->buckets[]" could be negative (s

RE: /usr/bin/ld: cannot find -lboost_program_options

2013-12-01 Thread charles L
i reinstalled ...libboost-program-options-dev and it fixed the issue. Thanks. > Date: Mon, 2 Dec 2013 10:18:33 +0800 > From: liw...@ubuntukylin.com > To: charlesboy...@hotmail.com > CC: ceph-devel@vger.kernel.org > Subject: Re: /usr/bin/ld: cannot find -lbo

Re: /usr/bin/ld: cannot find -lboost_program_options

2013-12-01 Thread Li Wang
Please install libboost-program-options-dev package before compiling for example, for Ubuntu, sudo apt-get install libboost-program-options-dev On 12/02/2013 09:57 AM, charles L wrote: Pls can some1 help? Im compiling ceph...i did the make -j2 command and got this "cannot find -lboost_program_o

/usr/bin/ld: cannot find -lboost_program_options

2013-12-01 Thread charles L
Pls can some1 help? Im compiling ceph...i did the make -j2 command and got this "cannot find -lboost_program_options" many times ..so i tried to run make in verbose mode...and  got this... root@ubuntuserver:/home/ceph# V=1 make Making all in . make[1]: Entering directory `/home/ceph' make[1]: No