Description of problem: Output of glusterfind includes directories so passing that output to a backup program effectively ignores file lists. Request an output option similar to 'find -type t' to only output filenames. Version-Release number of selected component (if applicable): RHGS 3.1.3 How reproducible: Requested feature.
Some post-processing could be added on glusterfind output outside of glusterfind to weed out directories. All "NEW ..." entries could be tested for the directory flag as: while read line; do op=$(echo $line | cut -f 1 -d ' ') if [ "$op" == "NEW" ]; then name=$(echo $line | cut -f 2 -d ' ') # if the name doesn't point to a directory, we'll keep it if [ ! -d "$name" ]; then echo $line fi else echo $line fi done < glusterfind-output.txt ----- Please note that the above script doesn't handle encoded paths in glusterfind output and needs appropriate handling if need be.
REVIEW:https://review.gluster.org/#/c/glusterfs/+/21965/
Can we get a PM ack and move forward with this to 3.5.1?
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (glusterfs bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:5603