[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v5 07/14] tools/xendomains: do space cleanups



From: "Luis R. Rodriguez" <mcgrof@xxxxxxxx>

This has no functional changes. This is just to prepare the file
to be moved, so you won't blind your eyes or get git am to complain.

Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Cc: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Cc: Jan RÄkorajski <baggins@xxxxxxxxxxxxx>
Cc: M A Young <m.a.young@xxxxxxxxxxxx>
Cc: Jacek Konieczny <jajcus@xxxxxxxxxx>
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Luis R. Rodriguez <mcgrof@xxxxxxxx>
---
 tools/hotplug/Linux/init.d/xendomains | 62 +++++++++++++++++------------------
 1 file changed, 31 insertions(+), 31 deletions(-)

diff --git a/tools/hotplug/Linux/init.d/xendomains 
b/tools/hotplug/Linux/init.d/xendomains
index 6cb1032..587568d 100644
--- a/tools/hotplug/Linux/init.d/xendomains
+++ b/tools/hotplug/Linux/init.d/xendomains
@@ -23,7 +23,7 @@
 # Default-Start:     2 3 5
 # Default-Stop:      0 1 6
 # Short-Description: Start/stop secondary xen domains
-# Description:       Start / stop domains automatically when domain 0 
+# Description:       Start / stop domains automatically when domain 0
 #                    boots / shuts down.
 ### END INIT INFO
 
@@ -44,7 +44,7 @@ then
        exit 0;
 fi
 
-# Correct exit code would probably be 5, but it's enough 
+# Correct exit code would probably be 5, but it's enough
 # if xend complains if we're not running as privileged domain
 if ! [ -e /proc/xen/privcmd ]; then
        exit 0
@@ -74,7 +74,7 @@ test -r $XENDOM_CONFIG || { echo "$XENDOM_CONFIG not 
existing";
 if test -e /etc/rc.status; then
     # SUSE rc script library
     . /etc/rc.status
-else    
+else
     _cmd=$1
     declare -a _SMSG
     if test "${_cmd}" = "status"; then
@@ -97,7 +97,7 @@ else
            fi
        }
     elif test -e /lib/lsb/init-functions; then
-       # LSB    
+       # LSB
        . /lib/lsb/init-functions
         if alias log_success_msg >/dev/null 2>/dev/null; then
          echo_rc()
@@ -114,7 +114,7 @@ else
            fi
          }
         fi
-    else    
+    else
        # emulate it
        echo_rc()
        {
@@ -124,17 +124,17 @@ else
     rc_reset() { _RC_RV=0; }
     rc_failed()
     {
-       if test -z "$1"; then 
+       if test -z "$1"; then
            _RC_RV=1;
-       elif test "$1" != "0"; then 
-           _RC_RV=$1; 
-       fi
+       elif test "$1" != "0"; then
+           _RC_RV=$1;
+       fi
        return ${_RC_RV}
     }
     rc_check()
     {
        return rc_failed $?
-    }  
+    }
     rc_status()
     {
        rc_failed $?
@@ -146,7 +146,7 @@ else
        return ${_RC_RV}
     }
     rc_exit() { exit ${_RC_RV}; }
-    rc_active() 
+    rc_active()
     {
        if test -z "$RUNLEVEL"; then read RUNLEVEL REST < <(/sbin/runlevel); fi
        if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
@@ -193,13 +193,13 @@ rdnames()
 {
     NAMES=
     if ! contains_something "$XENDOMAINS_AUTO"
-    then 
+    then
        return
     fi
     for dom in $XENDOMAINS_AUTO/*; do
        rdname $dom
-       if test -z $NAMES; then 
-           NAMES=$NM; 
+       if test -z $NAMES; then
+           NAMES=$NM;
        else
            NAMES="$NAMES|$NM"
        fi
@@ -232,7 +232,7 @@ is_running()
     while read LN; do
        parseln "$LN" || continue
        if test $id = 0; then continue; fi
-       case $name in 
+       case $name in
            ($NM)
                RC=0
                ;;
@@ -241,11 +241,11 @@ is_running()
     return $RC
 }
 
-start() 
+start()
 {
-    if [ -f $LOCKFILE ]; then 
+    if [ -f $LOCKFILE ]; then
        echo -e "xendomains already running (lockfile exists)"
-       return; 
+       return;
     fi
 
     saved_domains=" "
@@ -285,10 +285,10 @@ start()
        # XENDOMAINS_AUTO - they could just be symlinks to files elsewhere
 
        # Create all domains with config files in XENDOMAINS_AUTO.
-       # TODO: We should record which domain name belongs 
+       # TODO: We should record which domain name belongs
        # so we have the option to selectively shut down / migrate later
        # If a domain statefile from $XENDOMAINS_SAVE matches a domain name
-       # in $XENDOMAINS_AUTO, do not try to start that domain; if it didn't 
+       # in $XENDOMAINS_AUTO, do not try to start that domain; if it didn't
        # restore correctly it requires administrative attention.
        for dom in $XENDOMAINS_AUTO/*; do
            echo -n " ${dom##*/}"
@@ -349,14 +349,14 @@ watchdog_xencmd()
     read PSF PSUID PSPID PSPPID < <(echo "$PSAX")
     # kill $CMD $1
     kill $PSPID >/dev/null 2>&1
-    
+
     echo -e .
 }
 
 stop()
 {
     exec 3>&2 2> /dev/null
-    
+
     # Collect list of domains to shut down
     if test "$XENDOMAINS_AUTO_ONLY" = "true"; then
        rdnames
@@ -380,7 +380,7 @@ stop()
            esac
            "
        fi
-       # XENDOMAINS_SYSRQ chould be something like just "s" 
+       # XENDOMAINS_SYSRQ chould be something like just "s"
        # or "s e i u" or even "s e s i u o"
        # for the latter, you should set XENDOMAINS_USLEEP to 1200000 or so
        if test -n "$XENDOMAINS_SYSRQ"; then
@@ -413,7 +413,7 @@ stop()
                kill $WDOG_PID >/dev/null 2>&1
            else
                kill $WDOG_PID >/dev/null 2>&1
-               
+
                echo -e .
                usleep 1000
                continue
@@ -472,7 +472,7 @@ stop()
 
     # Unconditionally delete lock file
     rm -f $LOCKFILE
-    
+
     exec 2>&3
 }
 
@@ -482,7 +482,7 @@ check_domain_up()
     while read LN; do
        parseln "$LN" || continue
        if test $id = 0; then continue; fi
-       case $name in 
+       case $name in
            ($1)
                return 0
                ;;
@@ -501,9 +501,9 @@ check_all_auto_domains_up()
     for nm in $XENDOMAINS_AUTO/*; do
        rdname $nm
        found=0
-       if check_domain_up "$NM"; then 
+       if check_domain_up "$NM"; then
            echo -n " $name"
-       else 
+       else
            missing="$missing $NM"
        fi
     done
@@ -516,7 +516,7 @@ check_all_auto_domains_up()
 
 check_all_saved_domains_up()
 {
-    if ! contains_something "$XENDOMAINS_SAVE" 
+    if ! contains_something "$XENDOMAINS_SAVE"
     then
       return 0
     fi
@@ -563,8 +563,8 @@ case "$1" in
        ;;
 
     status)
-       echo -n "Checking for xendomains:" 
-       if test ! -f $LOCKFILE; then 
+       echo -n "Checking for xendomains:"
+       if test ! -f $LOCKFILE; then
            rc_failed 3
        else
            check_all_auto_domains_up
-- 
2.0.0.rc3.18.g00a5b79


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.