Comments (3)
Can you please send me your email address so that I can credit you for the patch. Or clone and submit a pull request. But please add the local statement:
--- a/heartbeat/exportfs
+++ b/heartbeat/exportfs
@@ -181,9 +181,11 @@ END
exportfs_monitor ()
{
-
local clientspec_re # "grep -z" matches across newlines, which is necessary as # exportfs output wraps lines for long export directory names
-
exportfs | grep -zqs "${OCF_RESKEY_directory}[[:space:]]*${OCF_RESKEY_clientspec}"
-
clientspec_re=`echo ${OCF_RESKEY_clientspec} | sed 's/*/[*]/'`
-
exportfs | grep -zqs "${OCF_RESKEY_directory}[[:space:]]*${clientspec_re}"
#Adapt grep status code to OCF return code
case $? in
from resource-agents.
Sorry I don't submit patches much. I forked and submitted a pull request.
On Fri, Dec 9, 2011 at 12:13 AM, Dejan Muhamedagic <
[email protected]
wrote:
Can you please send me your email address so that I can credit you for the
patch. Or clone and submit a pull request. But please add the local
statement:--- a/heartbeat/exportfs
+++ b/heartbeat/exportfs
@@ -181,9 +181,11 @@ ENDexportfs_monitor ()
{
local clientspec_re
"grep -z" matches across newlines, which is necessary as
exportfs output wraps lines for long export directory names
exportfs | grep -zqs
"${OCF_RESKEY_directory}[[:space:]]*${OCF_RESKEY_clientspec}"
clientspec_re=`echo ${OCF_RESKEY_clientspec} | sed 's/*/[*]/'`
exportfs | grep -zqs
"${OCF_RESKEY_directory}[[:space:]]*${clientspec_re}"
#Adapt grep status code to OCF return code
case $? in
Reply to this email directly or view it on GitHub:
from resource-agents.
This has been fixed here:
commit 5b0bf96
Author: Lars Ellenberg [email protected]
Date: Tue Jan 31 23:20:26 2012 +0100
Medium: fix exportfs monitor action for special characters and common suffixes
Many thanks for the report and code!
from resource-agents.
Related Issues (20)
- mysql: variable master_host empty on slave reboot
- Are awsvip and awseip still supported resources agents for RHEL HA? HOT 2
- awsvip versus AWS Policy HOT 3
- nothing provides /bin/ps needed by resource-agents-4.11.0 HOT 1
- WARNING: Can't get <node-name> xlog location. HOT 6
- ZFS promotion not working HOT 10
- Occasional false positive "down" reports from IPv6addr "monitor" action
- ZFS can't migrate to other node (cannot open pool: no such pool) HOT 2
- ERROR: LXC container name not set! HOT 23
- How to use the parameter of monitor_script?
- Unable to get metadata for resource agent 'stonith:fence_watchdog' (SyntaxError:JSON.parse:unexpected character at line 1) HOT 2
- master-pgsql attribute disappear HOT 1
- AWS Pacemaker awsvip failing with different errors HOT 4
- Resource agent - AWS Lambda support HOT 2
- Postfix RA continuously fails validate check HOT 1
- iSCSITarget - don't create default portal HOT 4
- resource-agents/heartbeat/ZFS - '-f' to option HOT 1
- "ocf : heartbeat : docker" does not exists in resource-agent v4.10 HOT 1
- How can I create a galera resource with two nodes?
- Filesystem in RHEL9.3 takes considerably longer to complete its stop operation compared to RHEL9.2. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resource-agents.