ClusterLabs/resource-agents — Issue #39: exportfs_monitor in exportfs does not support wildcard exports
Author: acqant
Created: 2011-12-06 17:00:40+00:00
State: open

Changing the OCF_RESKEY_clientspec to a character class makes exportfs_monitor correctly report the status

For example:
web* will not pass the grep and monitor will fail
web1.full.domain.com will pass the grep and pass monitor

Changing clientspec web* to web[*] will pass the grep and monitor will work.

186c148,149
< exportfs | grep -zqs "${OCF_RESKEY_directory}[[:space:]]*${OCF_RESKEY_clientspec}"
---
> NEW=`echo ${OCF_RESKEY_clientspec} | sed 's/*/[*]/'`
> exportfs | grep -zqs "${OCF_RESKEY_directory}[[:space:]]*${NEW}"