logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

gluster-setgfid2path - Gluster tool to set GFID to Path xattrs

Description

       New  feature  introduced  with  Gluster  release  3.12, to find full path from GFID.  This feature can be
       enabled using Volume set command glustervolumeset<VOLUME>storage.gfid2pathenable

       Once gfid2path feature is enabled, it starts recording the necessary xattrs required for the feature. But
       it will not add xattrs for the already  existing  files.  This  tool  provides  facility  to  update  the
       gfid2path xattrs for the given file path.

Examples

       To add xattrs of a single file,

              gluster-setgfid2path /bricks/b1/hello.txt

       To set xattr for all the existing files, run the below script on each bricks.

              BRICK=/bricks/b1
              find $BRICK -type d \( -path "${BRICK}/.trashcan" -o -path \
                  "${BRICK}/.glusterfs" \) -prune -o -type f \
                  -exec gluster-setgfid2path {} \;

Name

       gluster-setgfid2path - Gluster tool to set GFID to Path xattrs

See Also

gluster(8)

Synopsis

gluster-setgfid2pathfile

See Also