[Gluster-devel] [RFC] core: Introduce internal fop types.

Vijay Bellur vbellur at redhat.com
Thu Jan 2 14:11:58 UTC 2014


On 12/13/2013 10:09 AM, Raghavendra Gowdappa wrote:
> Hi all,
>
> It is increasingly becoming a necessity that xlators other than dht/afr to be aware of internal fops (fops not sent by kernel). Some of the xlators that use internal fops are:
>
> 1. changelog - to ignore link/unlink (triggered as part of rename) on dht-linkfiles
> 2. posix -  to overload mknod call to act as a link if file already exists (consumers - afr and gfid-acess)
>
> We are seeing similar needs in quota and marker:
>
> 1. Quota-enforcer: To treat link/unlinks on dht-datafiles triggered as part of rename equivalent to renames [1]
> 2. Marker: To not account dht-linkfiles
>
> Couple of months back when working on quota, there was a consensus that GLUSTERFS_INTERNAL_FOP_KEY is overloaded and should be cleaned up. Hence, I am proposing to introduce internal-fop types [2]. Please let me know your opinions.
>
> [1] http://review.gluster.com/#/c/6399/
> [2] http://review.gluster.org/#/c/6497/
>

I think having more apt keys for performing relevant actions is good to 
have. While this change is performed, we need to ensure that the 
behavior of posix/changelog other consumers remain backward compatible.

-Vijay





More information about the Gluster-devel mailing list