Description of problem: Scripts dont quote filenames so filenames with spaces fail. Version-Release number of selected component (if applicable): ALL How reproducible: Easily Steps to Reproduce: 1. Create a mount with a filename containing a space "./path/file name.txt" 2. Run generate-gfid-file.sh on it Actual results: getfattr: ./path/file: No such file or directory getfattr: name.txt: No such file or directory Expected results: Script runs as normal Additional info: https://github.com/gluster/glusterfs/blob/master/extras/geo-rep/generate-gfid-file.sh#L9 Reads find "$DIR_PATH" -exec $GET_GFID_CMD {} \; >> $OUTPUT_FILE Should be find "$DIR_PATH" -exec $GET_GFID_CMD "{}" \; >> $OUTPUT_FILE https://github.com/gluster/glusterfs/blob/master/extras/geo-rep/get-gfid.sh#L3 Reads ATTR_STR=`getfattr -h $1 -n glusterfs.gfid.string` Should be ATTR_STR=`getfattr -h "$1" -n glusterfs.gfid.string`
This bug reported is against a version of Gluster that is no longer maintained (or has been EOL'd). See https://www.gluster.org/release-schedule/ for the versions currently maintained. As a result this bug is being closed. If the bug persists on a maintained version of gluster or against the mainline gluster repository, request that it be reopened and the Version field be marked appropriately.