# HG changeset patch
# User Florian Haas <[email protected]>
# Date 1287154687 -7200
# Node ID 80aa4855038042b7f263df775d281138a1ba658b
# Parent  34f73e222a37b82b525b842da2967dcb79d2e7c3
Low: exportfs: run exportfs with -v option

Invoke the exportfs binary with the -v (verbose) option,
so ocf_run can log something useful.

diff -r 34f73e222a37 -r 80aa48550380 heartbeat/exportfs
--- a/heartbeat/exportfs        Fri Oct 15 16:58:07 2010 +0200
+++ b/heartbeat/exportfs        Fri Oct 15 16:58:07 2010 +0200
@@ -181,7 +181,7 @@
        fi
        OPTIONS="-o ${OPTIONS}"
 
-       ocf_run exportfs ${OPTIONS} 
${OCF_RESKEY_clientspec}:${OCF_RESKEY_directory} || exit $OCF_ERR_GENERIC
+       ocf_run exportfs -v ${OPTIONS} 
${OCF_RESKEY_clientspec}:${OCF_RESKEY_directory} || exit $OCF_ERR_GENERIC
 
        RETRIES=0
        while [ 1 ]; do
@@ -221,7 +221,7 @@
 {
        ocf_log info "Un-exporting file system ..."
 
-       ocf_run exportfs -u ${OCF_RESKEY_clientspec}:${OCF_RESKEY_directory}
+       ocf_run exportfs -v -u ${OCF_RESKEY_clientspec}:${OCF_RESKEY_directory}
        rc=$?
 
        if [ -f $PIDF ]; then


_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to