Description of problem: While debugging a failure to mount a gluster volume I was briefly misled by the warning message: "WARNING: getfattr not found, certain checks will be skipped.." I did have getfattr installed, however my minimal OS install did not include 'which'. The 'which' command is not as portable and can be replaced by 'command -v' (see also https://stackoverflow.com/a/677212 ) Version-Release number of selected component (if applicable): Tested on 4.2dev-0.99.git1058185 How reproducible: Always Steps to Reproduce: 1. Uninstall which if it installed on the system 2. Ensure getfattr tool is installed on the system 3. Run mount.gluterfs (with any options) Actual results: Command prints "WARNING: getfattr not found, certain checks will be skipped.." even though the getfattr tool is available. Expected results: Command prints "WARNING: getfattr not found, certain checks will be skipped.." only if the getfattr tool is not present.
REVIEW: https://review.gluster.org/20336 (fuse: avoid using the which command) posted (#1) for review on master by John Mulligan
COMMIT: https://review.gluster.org/20336 committed in master by "Amar Tumballi" <amarts> with a commit message- fuse: avoid using the which command In mount.glusterfs avoid using the which tool as it may not exist on minimal system installs. Use the "command -v" builtin as it is expected to be more portable. Remove a extra semicolon while we're at it. Change-Id: Ib682ed4955d5bad1beb94b65d10f4c44e9490767 fixes: bz#1593351 Signed-off-by: John Mulligan <jmulligan>
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-5.0, please open a new bug report. glusterfs-5.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/2018-October/000115.html [2] https://www.gluster.org/pipermail/gluster-users/