]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mkcephfs: Clarified numosd message
authorMatthew Roy <matthew@royhousehold.net>
Fri, 31 Dec 2010 07:42:14 +0000 (02:42 -0500)
committerSage Weil <sage@newdream.net>
Tue, 4 Jan 2011 17:09:54 +0000 (09:09 -0800)
Signed-off-by: Matthew Roy <matthew@royhousehold.net>
Signed-off-by: Sage Weil <sage@newdream.net>
src/mkcephfs.in

index cac7c392581f1f0db7a45a38084d8ee5c244cd85..ee9764e59c3d32e33c5b7e74c3ba0f83c4eb97b9 100644 (file)
@@ -115,9 +115,10 @@ if true; then
     # build osdmap
     osdmap="/tmp/osdmap.$$"
     if [ -z "$numosd" ]; then
+       # find highest osd id - assumes the conf file complies with osd numbering requirements
        maxosd=`$CCONF -c $conf -l osd | egrep -v '^osd$' | cut -c 4- | sort -n | tail -1`
        numosd=$(($maxosd + 1))
-       echo max osd in $conf is $maxosd, num osd is $numosd
+       echo Highest osd in $conf is osd$maxosd, number of osd is $numosd.
     fi
     $BINDIR/osdmaptool --clobber --createsimple $numosd $osdmap || exit 1