Description of problem: Currently marker and changelog translators for certain cases need to know the pathname of a file given just the file's gfid. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
REVIEW: http://review.gluster.org/5140 (posix: placeholders for GFID to path conversion) posted (#5) for review on master by Ramana Raja (rraja)
REVIEW: http://review.gluster.org/5140 (posix: placeholders for GFID to path conversion) posted (#6) for review on master by Ramana Raja (rraja)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#1) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#2) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#3) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#4) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#5) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#6) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#7) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#8) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#9) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#10) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#11) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#12) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#13) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#14) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#15) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#16) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#17) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#18) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#19) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#20) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#21) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#22) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#23) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#24) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#25) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#26) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#27) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#28) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#29) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#30) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#31) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#32) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#33) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#34) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#35) for review on master by Krishnan Parthasarathi (kparthas)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#36) for review on master by Krishnan Parthasarathi (kparthas)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#37) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#38) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#39) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#40) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#41) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#42) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#43) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#44) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#45) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#64) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#65) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#66) for review on master by Raghavendra G (rgowdapp)
REVIEW: http://review.gluster.org/5951 (posix: placeholders for GFID to path conversion) posted (#67) for review on master by Raghavendra G (rgowdapp)
COMMIT: http://review.gluster.org/5951 committed in master by Anand Avati (avati) ------ commit d6dc8d0e9e2052818c9858f6b073a8bacc3fca88 Author: Raghavendra G <rgowdapp> Date: Mon Sep 16 17:50:25 2013 +0530 posix: placeholders for GFID to path conversion what? ===== The following is an attempt to generate the paths of a file when only its gfid is known. To find the path of a directory, the symlink handle to the directory maintained in the ".glusterfs" backend directory is read. The symlink handle is generated using the gfid of the directory. It (handle) contains the directory's name and parent gfid, which are used to recursively construct the absolute path as seen by the user from the mount point. A similar approach cannot be used for a regular file or a symbolic link since its hardlink handle, generated using its gfid, doesn't contain its parent gfid and basename. So xattrs are set to store the parent gfids and the number of hardlinks to a file or a symlink having the same parent gfid. When an user/application requests for the paths of a regular file or a symlink with multiple hardlinks, using the parent gfids stored in the xattrs, the paths of the parent directories are generated as mentioned earlier. The base names of the hardlinks (with the same parent gfid) are determined by matching the actual backend inode numbers of each entry in the parent directory with that of the hardlink handle. Xattr is set on a regular file, link, and symbolic link as follows, Xattr name : trusted.pgfid.<pargfidstr> Xattr value : <number of hardlinks to a regular file/symlink with the same parentgfid> If a regular file, hard link, symbolic link is created then an xattr in the above format is set in the backend. how to use? =========== This functionality can be used through getxattr interface. Two keys - glusterfs.ancestry.dentry and glusterfs.ancestry.path - enable usage of this functionality. A successful getxattr will have the result stored under same keys. Values will be, glusterfs.ancestry.dentry: -------------------------- A linked list of gf-dirent structures for all possible paths from root to this gfid. If there are multiple paths, the linked-list will be a series of paths one after another. Each path will be a series of dentries representing all components of the path. This key is primarily for internal usage within glusterfs. glusterfs.ancestry.path: ------------------------ A string containing all possible paths from root to this gfid. Multiple hardlinks of a file or a symlink are displayed as a colon seperated list (this could interfere with path components containing ':'). e.g. If there is a file "file1" in root directory with two hardlinks, "/dir2/link2tofile1" and "/dir1/link1tofile1", then [root@alpha gfsmntpt]# getfattr -n glusterfs.ancestry.path -e text file1 glusterfs.ancestry.path="/file1:/dir2/link2tofile1:/dir1/link1tofile1" Thanks Amar, Avati and Venky for the inputs. Original Author: Ramana Raja <rraja> BUG: 990028 Signed-off-by: Raghavendra G <rgowdapp> Change-Id: I0eaa9101e333e0c1f66ccefd9e95944dd4a27497 Reviewed-on: http://review.gluster.org/5951 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Anand Avati <avati>
REVIEW: http://review.gluster.org/6756 (storage/posix: HANDLE_PFX is redundant use GF_HIDDEN_PATH instead) posted (#1) for review on master by Harshavardhana (harsha)
COMMIT: http://review.gluster.org/6756 committed in master by Vijay Bellur (vbellur) ------ commit 7bea98fa5845ced670d7bb2d9b1336c03855a798 Author: Harshavardhana <harsha> Date: Tue Jan 21 22:03:41 2014 -0800 storage/posix: HANDLE_PFX is redundant use GF_HIDDEN_PATH instead GF_HIDDEN_PATH usage would help in better readability of the code and avoids bugs produced from redundant macro constants. Change-Id: I2fd7e92e87783ba462ae438ced2cf4f720a25f5c BUG: 990028 Signed-off-by: Harshavardhana <harsha> Reviewed-on: http://review.gluster.org/6756 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Raghavendra G <rgowdapp> Reviewed-by: Vijay Bellur <vbellur>
*** Bug 812230 has been marked as a duplicate of this bug. ***
Oh for chrissake.
A beta release for GlusterFS 3.6.0 has been released. Please verify if the release solves this bug report for you. In case the glusterfs-3.6.0beta1 release does not have a resolution for this issue, leave a comment in this bug and move the status to ASSIGNED. If this release fixes the problem for you, leave a note and change the status to VERIFIED. Packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update (possibly an "updates-testing" repository) infrastructure for your distribution. [1] http://supercolony.gluster.org/pipermail/gluster-users/2014-September/018836.html [2] http://supercolony.gluster.org/pipermail/gluster-users/
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.6.1, please reopen this bug report. glusterfs-3.6.1 has been announced [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] http://supercolony.gluster.org/pipermail/gluster-users/2014-November/019410.html [2] http://supercolony.gluster.org/mailman/listinfo/gluster-users