[Gluster-devel] update-link-count-parent POSIX xlator parameter

Prashanth Pai ppai at redhat.com
Thu Aug 21 06:38:26 UTC 2014


sure!

Regards,
 -Prashanth Pai

----- Original Message -----
From: "Humble Devassy Chirammal" <humble.devassy at gmail.com>
To: "Prashanth Pai" <ppai at redhat.com>
Cc: "Harshavardhana" <harsha at harshavardhana.net>, "Ben England" <bengland at redhat.com>, "gluster-devel" <gluster-devel at gluster.org>
Sent: Thursday, August 21, 2014 12:03:58 PM
Subject: Re: [Gluster-devel] update-link-count-parent POSIX xlator parameter

Hi Prasanth,

Its worth to have in our GlusterFS source doc . Can you send a patch on
this ?

--Humble


On Thu, Aug 21, 2014 at 10:34 AM, Prashanth Pai <ppai at redhat.com> wrote:

> Hi,
>
> I recently came across this when I was looking for various ways to convert
> GFID to Path[1].
> I have tested "build-pgfid" option for basic sanity. It's documented in
> the commit msg of change[2]. Found one small issue[3]. There could be
> others.
> Users should be aware that these xattrs generated only for newly created
> dirs/files and are not built for already existing dirs/files.
>
> [1]:
> https://github.com/prashanthpai/sof-object-listing/blob/master/changelog/gfid-to-path.md
> [2]: http://review.gluster.org/5951
> [3]: http://review.gluster.org/8352
>
> Regards,
>  -Prashanth Pai
>
> ----- Original Message -----
> From: "Harshavardhana" <harsha at harshavardhana.net>
> To: "Ben England" <bengland at redhat.com>
> Cc: "gluster-devel" <gluster-devel at gluster.org>
> Sent: Thursday, August 21, 2014 2:57:25 AM
> Subject: Re: [Gluster-devel] update-link-count-parent POSIX xlator
> parameter
>
> On Wed, Aug 20, 2014 at 1:55 PM, Ben England <bengland at redhat.com> wrote:
> > What is update-link-count-parent POSIX xlator parameter for?  Is it ever
> set by anyone and why?  It appears to be off by default.  Didn't see this
> documented, but the log message in posix.c says:  "update-link-count-parent
> is enabled. Thus for each file an extended attribute representing the
> number of hardlinks for that file within the same parent directory is
> set."  Why would this be necessary?
> >
>
> It was supposed to be used by Quota or it uses it internally i am not
> sure for ancestry paths and gfid to path conversion - AFAIK
>
> # gluster volume set <volname> build-pgfid on
>
> Enables this feature. Never tested it personally.
>
> --
> Religious confuse piety with mere ritual, the virtuous confuse
> regulation with outcomes
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-devel
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-devel
>


More information about the Gluster-devel mailing list