On 7/18/2017 20:54, Daniel Gryniewicz wrote:
> On 07/18/2017 08:51 AM, Daniel Gryniewicz wrote:
>> On 07/17/2017 08:10 PM, Kinglong Mee wrote:
>>> Ganesha invalidates directory dirent in mdcache_getattrs depends on 
>>> mtime.tv_sec.
>>> But the time accuracy is 1s.
>>>
>>> If there are many creating after one readdir in 1s,
>>> how to make sure the dirents in mdcache is synchronous as lower filesystem?
>>>
>>> I wanna know, can we update it to depends on mtime.tv_usec?
>>> Are there some problems or some other considers?
>>>
>>
>> In mdcache_refresh_attrs(), it uses gsh_time_cmp() to check of the mtime has 
>> changed.  That compares tv_sec and tv_nsec, so it should already be 
>> comparing to the limit of the filesystem's resolution.
>>
>> Daniel
> 
> Ah, I see.  This has been fixed in 2.5. You should upgrade.

Yes, it's fixed.
Sorry for my fault of miss checking the latest version.

thanks,
Kinglong Mee

> 
> Daniel
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Nfs-ganesha-devel mailing list
> Nfs-ganesha-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to