summaryrefslogtreecommitdiffstats
path: root/xlators/performance
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-05-28 04:42:58 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-03 00:44:41 -0700
commit1a0cf7dc85967387fe2c458914409b888fc86235 (patch)
tree93372a5e46ef540e6274925326b572e09e043fb5 /xlators/performance
parent9c7f9475f48ea2ea5ca2e275ba6554acd24f817c (diff)
libglusterfsclient: Add dirent pre-fetching and caching
The fop interface is such that we're able to extract more than 1 dirent in a readdir fop. This commit now enables libglusterfsclient to read multiple entries on a glusterfs_readdir call. Once these have been pre-fetched, they're cached till either glusterfs_closedir ,glusterfs_rewinddir or glusterfs_seekdir are called. The current implementation is beneficial for sequential directory reading and probably indifferent to applications that do a lot of seekdir and rewinddir after opening the directory. This is because both these calls result in dirent cache invalidation. Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/performance')
0 files changed, 0 insertions, 0 deletions