We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cc74ac + bdfbc26 commit 78ce005Copy full SHA for 78ce005
heartbeat/exportfs
@@ -390,10 +390,10 @@ cleanup_export_cache() {
390
local contentfile=/proc/net/rpc/nfsd.export/content
391
local fsid_re
392
local i=1
393
- fsid_re="fsid=(echo `forall get_fsid`|sed 's/ /|/g'),"
+ local fsid_all=`forall get_fsid`
394
+ fsid_re="fsid=(`echo $fsid_all | sed 's/ /|/g'`),"
395
while :; do
- grep -E -q "$fsid_re" $contentfile ||
396
- break
+ grep -E -q "$fsid_re" $contentfile || break
397
ocf_log info "Cleanup export cache ... (try $i)"
398
ocf_run exportfs -f
399
sleep 0.5
0 commit comments