Send Linux-ha-cvs mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."


Today's Topics:

   1. Linux-HA CVS: resources by lars from 
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Thu, 18 May 2006 09:28:36 -0600 (MDT)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: resources by lars from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : lars
Host    : 
Project : linux-ha
Module  : resources

Dir     : linux-ha/resources/OCF


Modified Files:
        Filesystem.in 


Log Message:
Put in enhancements and fixes by Jo De Baer.

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/resources/OCF/Filesystem.in,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- Filesystem.in       18 May 2006 15:27:11 -0000      1.18
+++ Filesystem.in       18 May 2006 15:28:35 -0000      1.19
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $Id: Filesystem.in,v 1.18 2006/05/18 15:27:11 lars Exp $
+# $Id: Filesystem.in,v 1.19 2006/05/18 15:28:35 lars Exp $
 #
 # Support:      [EMAIL PROTECTED]
 # License:      GNU General Public License (GPL)
@@ -95,7 +95,7 @@
 usage() {
        cat <<-EOT
        usage: $0 {start|stop|status|monitor|validate-all|meta-data}
-       $Id: Filesystem.in,v 1.18 2006/05/18 15:27:11 lars Exp $
+       $Id: Filesystem.in,v 1.19 2006/05/18 15:28:35 lars Exp $
        EOT
 }
 
@@ -338,6 +338,43 @@
        local n_op="$OCF_RESKEY_notify_operation"
        local n_active="$OCF_RESKEY_notify_active_uname"
 
+       case "$OCF_RESKEY_notify_type" in
+       *pre*)
+               case "$OCF_RESKEY_notify_operation" in
+               *start*)
+                       # remove unames from notify_stop_uname
+                       for UNAME in "$OCF_RESKEY_notify_stop_uname"
+                       do
+                               n_active=${n_active//$UNAME}
+                       done
+               ;;
+               *stop*)
+               # leave notify_active_uname as is
+               ;;
+               esac
+       ;;
+       *post*)
+               case "$OCF_RESKEY_notify_operation" in
+               *start*)
+                       # remove unames from notify_stop_uname
+                       for UNAME in "$OCF_RESKEY_notify_stop_uname"
+                       do
+                               n_active=${n_active//$UNAME}
+                       done
+                       # add unames from notify_start_uname
+                       n_active="${n_active} $OCF_RESKEY_notify_start_uname"
+               ;;
+               *stop*)
+                       # remove unames from notify_stop_uname
+                       for UNAME in "$OCF_RESKEY_notify_stop_uname"
+                       do
+                               n_active=${n_active//$UNAME}
+                       done
+               ;;
+               esac
+       ;;
+       esac
+
        ocf_log debug "$OCFS2_UUID - notify: $n_type for $n_op - active on 
$n_active"
 
        if [ "$n_type" != "post" ]; then
@@ -599,7 +636,7 @@
        if [ -n "$OCF_RESKEY_ocfs2_cluster" ]; then
                OCFS2_CLUSTER=$(echo $OCF_RESKEY_ocfs2_cluster | tr a-z A-Z)
        else
-               OCFS2_CLUSTER=$(find /tmp -maxdepth 1 -mindepth 1 -type d 2>&1)
+               OCFS2_CLUSTER=$(find "$OCFS2_CONFIGFS" -maxdepth 1 -mindepth 1 
-type d -printf %f 2>&1)
                set -- $OCFS2_CLUSTER
                local n="$#"
                if [ $n -gt 1 ]; then




------------------------------

_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


End of Linux-ha-cvs Digest, Vol 30, Issue 57
********************************************

Reply via email to