diff options
author | Raghavendra G <rgowdapp@redhat.com> | 2018-06-15 17:01:38 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2018-06-18 09:37:08 +0000 |
commit | 67de708df134cc9f2edf408f2dd9a7ed1a1ef817 (patch) | |
tree | 01cdbe04a78823ac4c70dc3122b5286332921d61 /extras/who-wrote-glusterfs | |
parent | ce8290db83427535b532c6df72ef07fae89407eb (diff) |
performance/quick-read: provide an invalidation based on ctime
Quick-read by default uses mtime to identify changes to file
data. However there are applications like rsync which explicitly set
mtime making it unreliable for the purpose of identifying change in
file content. Since ctime also changes when content of a file changes
and it cannot be set explicitly, it becomes suitable for identifying
staleness of cached data. This option makes quick-read to prefer ctime
over mtime to validate its cache. However, using ctime can result in
false positives as ctime changes with just attribute changes like
permission without changes to file data. So, use this option only when
mtime is not reliable.
credits to Kotresh Hiremath Ravishankar <khiremat@redhat.com> for
suggestion on using ctime instead of mtime.
Change-Id: Ib3ae39a3252b2876c8ffe81f471d02a87190e9b9
Signed-off-by: Raghavendra G <rgowdapp@redhat.com>
Updates: bz#1591621
Diffstat (limited to 'extras/who-wrote-glusterfs')
0 files changed, 0 insertions, 0 deletions