Bug 1223947

Summary: Syntax errors in gfind_missing_files shell scripts
Product: [Community] GlusterFS Reporter: Patrick Matthäi <pmatthaei>
Component: scriptsAssignee: Kotresh HR <khiremat>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.7.6CC: avishwan, bugs, khiremat
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.7.13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-20 13:55:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch for fixing issue none

Description Patrick Matthäi 2015-05-21 18:39:38 UTC
$ sh -n ./tools/gfind_missing_files/gfid_to_path.sh
./tools/gfind_missing_files/gfid_to_path.sh: 14: ./tools/gfind_missing_files/gfid_to_path.sh: Syntax error: "(" unexpected

$ sh -n ./tools/gfind_missing_files/gfind_missing_files.sh 
./tools/gfind_missing_files/gfind_missing_files.sh: 17: ./tools/gfind_missing_files/gfind_missing_files.sh: Syntax error: "(" unexpected

Comment 1 Patrick Matthäi 2015-11-09 09:49:14 UTC
Created attachment 1091671 [details]
Patch for fixing issue

Comment 2 Patrick Matthäi 2015-11-09 09:49:38 UTC
Hello,

patch attached. Please add it for 3.7.7

Comment 3 Vijay Bellur 2016-06-22 09:58:50 UTC
REVIEW: http://review.gluster.org/14774 (scripts: bash-isms in scripts) posted (#1) for review on release-3.7 by Kotresh HR (khiremat)

Comment 4 Vijay Bellur 2016-06-22 10:09:32 UTC
REVIEW: http://review.gluster.org/14774 (scripts: bash-isms in scripts) posted (#2) for review on release-3.7 by Kotresh HR (khiremat)

Comment 5 Vijay Bellur 2016-06-24 16:42:34 UTC
COMMIT: http://review.gluster.org/14774 committed in release-3.7 by Kaleb KEITHLEY (kkeithle) 
------
commit cdaa5dd7f91d93fce3d900e4321dd83d021e96dd
Author: Kaleb S KEITHLEY <kkeithle>
Date:   Tue May 17 11:06:07 2016 -0400

    scripts: bash-isms in scripts
    
    Backport of http://review.gluster.org/14401/
    
    Change-Id: I05f8718fb73c16dbb37c1f7460bb7b55cc0ffe97
    BUG: 1223947
    Reported-by: Patrick Matthäi <pmatthaei>
    Signed-off-by: Kotresh HR <khiremat>
    Original-Author: Kaleb S KEITHLEY <kkeithle>
    (cherry picked from commit 2df72780e473709128a4f5d7f274a9063b288252)
    Reviewed-on: http://review.gluster.org/14774
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Kaleb KEITHLEY <kkeithle>

Comment 6 Kaushal 2016-07-20 13:55:16 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.13, please open a new bug report.

glusterfs-3.7.13 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] https://www.gluster.org/pipermail/gluster-users/2016-July/027604.html
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user