J. Bruce Fields <bfields@xxxxxxxxxxxx> wrote: > You're assuming no filesystem uses -1 as a cookie? > Might be true, but it's taking a small chance. Latest version does not work like this anymore: when EOF is reached, current offset is recorded in pfd->dir_eof, and we fire EINVAL if seekdir() failed to set the offset and the offset is not pfd->dir_eof: if (telldir(dir) != (long)off && off != pfd->dir_eof) -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz manu@xxxxxxxxxx _______________________________________________ Gluster-devel mailing list Gluster-devel@xxxxxxxxxxx http://supercolony.gluster.org/mailman/listinfo/gluster-devel