As of now, we use 1024 bytes as the buffer for reading directory entries. If a directory as many files, then its possible that it does not fit into this buffer, thereby requiring more than one call to readdir. Now suppose the last bunch of directories fit more or less exactly int the 1024 byte buffer. If this happens, the offset extracted by the current logic(in libgf_client_readdir) never gets updated beyond the first entry in this last block, because the last block's first entry always remains same. This explanation is convoluted, I know, but I too found out the hard way. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
GlusterFS is a flexible, powerful, POSIX-compliant cluster filesystem that can scale to several petabytes. GlusterFS works over either TCP/IP or high-performance Infiniband RDMA interconnect. GlusterFS provides striping and on-the-fly synchronous replication of files. GlusterFS has a fully distributed design, with no single point of failure. Please visit http://www.gluster.org/glusterfs.php for more info.
Description
Languages
C
86.6%
Shell
7.5%
Python
3.6%
Perl
0.7%
Makefile
0.4%
Other
0.9%