[DRBD-cvs] svn commit by florian - r3040 - branches/drbd-8.0/scripts - M-x untabify

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Fri Aug 31 09:51:08 CEST 2007


Author: florian
Date: 2007-08-31 09:51:08 +0200 (Fri, 31 Aug 2007)
New Revision: 3040

Modified:
   branches/drbd-8.0/scripts/block-drbd
Log:
M-x untabify


Modified: branches/drbd-8.0/scripts/block-drbd
===================================================================
--- branches/drbd-8.0/scripts/block-drbd	2007-08-31 07:41:41 UTC (rev 3039)
+++ branches/drbd-8.0/scripts/block-drbd	2007-08-31 07:51:08 UTC (rev 3040)
@@ -254,24 +254,24 @@
         drbd_state="$(/sbin/drbdadm state $drbd_resource)"
         drbd_lstate="${drbd_state%%/*}"
         drbd_dev="$(/sbin/drbdadm sh-dev $drbd_resource)"
-	if [ "$drbd_lstate" != 'Primary' ]; then
-	  /sbin/drbdadm primary $drbd_resource
-	fi
+        if [ "$drbd_lstate" != 'Primary' ]; then
+          /sbin/drbdadm primary $drbd_resource
+        fi
         dev=$drbd_dev
         FRONTEND_ID=$(xenstore_read "$XENBUS_PATH/frontend-id")
         FRONTEND_UUID=$(xenstore_read_default \
             "/local/domain/$FRONTEND_ID/vm" 'unknown')
         claim_lock "block"
         check_device_sharing "$dev" "$mode"
-	write_dev "$dev"
+        write_dev "$dev"
         release_lock "block"
-	exit 0
-	;;
+        exit 0
+        ;;
       "")
         claim_lock "block"
         success
         release_lock "block"
-	;;
+        ;;
     esac
     ;;
 
@@ -279,20 +279,20 @@
     case $t in 
       drbd)
         p=$(xenstore_read "$XENBUS_PATH/params")
-	drbd_resource=$p
-	drbd_state="$(/sbin/drbdadm state $drbd_resource)"
-	drbd_lstate="${drbd_state%%/*}"
-	drbd_dev="$(/sbin/drbdadm sh-dev $drbd_resource)"
+        drbd_resource=$p
+        drbd_state="$(/sbin/drbdadm state $drbd_resource)"
+        drbd_lstate="${drbd_state%%/*}"
+        drbd_dev="$(/sbin/drbdadm sh-dev $drbd_resource)"
 
-	if [ "$drbd_lstate" != 'Secondary' ]; then
-	  /sbin/drbdadm secondary $drbd_resource
-	fi
-	exit 0
-	;;
+        if [ "$drbd_lstate" != 'Secondary' ]; then
+          /sbin/drbdadm secondary $drbd_resource
+        fi
+        exit 0
+        ;;
 
       "")
         exit 0
-	;;
+        ;;
     esac
     ;;
 



More information about the drbd-cvs mailing list