GithubHelp home page GithubHelp logo

Comments (3)

dmuhamedagic avatar dmuhamedagic commented on July 18, 2024

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.

acqant avatar acqant commented on July 18, 2024

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 @@ 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


Reply to this email directly or view it on GitHub:

#39 (comment)

from resource-agents.

dmuhamedagic avatar dmuhamedagic commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.