Description of problem: Some tools expects Number of letters before the path names. If a filename includes newline character it is difficult for consumer to distinguish two files. For example, 15 hello_world.txt 5 d1/f1 Additional info: Feature patch: http://review.gluster.org/#/c/9682/
REVIEW: http://review.gluster.org/10012 (tools/glusterfind: Output Format Configurable) posted (#1) for review on master by Aravinda VK (avishwan)
Above mentioned patch is Abandoned. Below patch standardizes the output format. It is easy to postprocess from this format and convert it to required format. http://review.gluster.org/#/c/10320/ Example to convert it to required format.(First argument is filename generated by glusterfind --full #!/usr/bin/python import sys import urllib filename = sys.argv[1] with open(filename) as f: for line in f: line = urllib.unquote_plus(line) print "%s %s" % (len(line), line)
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.0, please open a new bug report.