From 9befd1eacd5ca0b80457aca2c278d37a7f468d76 Mon Sep 17 00:00:00 2001 From: Matthew Roy Date: Fri, 31 Dec 2010 02:42:14 -0500 Subject: [PATCH] mkcephfs: Clarified numosd message Signed-off-by: Matthew Roy Signed-off-by: Sage Weil --- src/mkcephfs.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mkcephfs.in b/src/mkcephfs.in index cac7c392581f1..ee9764e59c3d3 100644 --- a/src/mkcephfs.in +++ b/src/mkcephfs.in @@ -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 -- 2.39.5