Bug 1564890
Summary: | mount.glusterfs: can't shift that many | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Alex <alexander.zimmermann96> |
Component: | scripts | Assignee: | Niels de Vos <ndevos> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | urgent | Docs Contact: | |
Priority: | high | ||
Version: | mainline | CC: | alexander.zimmermann96, amukherj, atumball, bugs, ndevos, sbonazzo, srangana |
Target Milestone: | --- | Keywords: | EasyFix, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-6.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-03-25 16:30:19 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: |
Description
Alex
2018-04-08 16:31:51 UTC
Alex, I see that actually, changing the shell type worked for you. Niels, should we change it in codebase itself? Changing #!/bin/sh to #!/bin/bash is not recommended as it pulls in more dependencies (bash is considered large for container/cloud images). It would be better to fix the problem in the script, and do the correct shifting of arguments (maybe call 'shift' 2x instead of 'shift 2'?). REVIEW: https://review.gluster.org/21295 (fuse: prevent error message \"can't shift that many\") posted (#1) for review on master by Niels de Vos COMMIT: https://review.gluster.org/21295 committed in master by "Amar Tumballi" <amarts> with a commit message- fuse: prevent error message "can't shift that many" On systems where /bin/sh is not Bash, running plain mount.glusterfs gives the unhelpful error "can't shift that many". The argument parsing can be a little improved. Adding a check for the number of arguments, minimal two (Gluster ip:/volume, and mountpoint), but possibly more (-o, -v etc.). With the additional check, running 'mount.glusterfs -h' now shows the following messags: Usage: /sbin/mount.glusterfs <server>:<volume/subdir> <mountpoint> -o<options> Options: man 8 mount.glusterfs To display the version number of the mount helper: /sbin/mount.glusterfs -V Change-Id: I50e3ade0c6217fab4155f35ad8cb35d99d52e133 Fixes: bz#1564890 Reported-by: Alexander Zimmermann <alexander.zimmermann96> Signed-off-by: Niels de Vos <ndevos> *** Bug 1182145 has been marked as a duplicate of this bug. *** Fix is present only against mainline, moving the bug to mainline, for required tracking. 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-6.0, please open a new bug report. glusterfs-6.0 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://lists.gluster.org/pipermail/announce/2019-March/000120.html [2] https://www.gluster.org/pipermail/gluster-users/ |