]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mkcephfs: Fix wrong maxosd when OSD ids are random ordered in ceph.conf
authorCC Lien <cc_lien@tcloudcomputing.com>
Tue, 29 Jun 2010 14:29:11 +0000 (22:29 +0800)
committerSage Weil <sage@newdream.net>
Tue, 29 Jun 2010 15:22:13 +0000 (08:22 -0700)
commit0cb7a71c3b413c7e898dca9514ef347c5b2e7c08
treec29113f7089b73d7ab2b1bab0a1a3cb21a6d1c0a
parent50f254d0ce6c86a21140a4ce5a3ce08deb3d1d77
mkcephfs: Fix wrong maxosd when OSD ids are random ordered in ceph.conf

Hi

I got a trouble that mkcephfs will have wrong "maxosd" when you have
ceph.conf with OSD ids in random order like:

[osd2]
...
[osd0]
...
[osd1]
...

In this case, you will got "2" for the "maxosd", instead of 3.
After adding a sort, the problem seems solved.

Cheers,
CC Lien

Signed-off-by: CC Lien <cc_lien@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
src/mkcephfs.in