On 3/1/19 11:45 PM, Marc Eshel wrote:
Hi Daniel,
I am trying to understand the support for expire_time_attr. First there is
this comment in the code
/** Expiration time interval in seconds for attributes. Settable with
Attr_Expiration_Time (should never be set for client export_perms.
*/
int32_t expire_time_attr;
But I see this initialization code:
#define GLOBAL_EXPORT_PERMS_INITIALIZER \
.def.anonymous_uid = ANON_UID, \
.def.anonymous_gid = ANON_GID, \
.def.expire_time_attr = 60, \
My question is in which configuration block you set Attr_Expiration_Time
for export_perms and which block set it for attrlist
Thanks, Marc.
Attr_Expiration_Time is an export parameter, so it can be set in the
Export block or the Export_Defaults block. When a new entry is created
(in mdcache_new_entry()), that value is copied from the export into the
attrlist for that entry. Thereafter, it's referenced directly from the
attrlist.
So, it's only configured on an export, but it's referenced from the
attrlist of the entry itself.
Daniel