]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-daemon: some comments
authorSage Weil <sage@newdream.net>
Fri, 27 Feb 2009 21:12:15 +0000 (13:12 -0800)
committerSage Weil <sage@newdream.net>
Fri, 27 Feb 2009 23:11:48 +0000 (15:11 -0800)
src/ceph-daemons

index 4c277e7e37f2eb250fee9bbc600cf3babdd94a31..18867c47d75886ec8667ae1b094c6f504d8f4f7c 100755 (executable)
@@ -80,9 +80,10 @@ if [[ $what = "" ]]; then
        $CCONF -c $startup_conf -l osd | egrep -v '^osd$'`
 fi
 
+# get hostname, minus any domain
 hostname=`hostname | cut -d . -f 1`
 for item in $what; do
-    type=`echo $item | cut -c 1-3` 
+    type=`echo $item | cut -c 1-3`   # e.g. 'mon', if $item is 'mon1'
 
     # this host?
     host=`$CCONF -c $startup_conf -s $item -s $type -s global host`