James Youngman <j...@gnu.org> writes: > Perhaps stat calls are relatively > expensive on glusterfs (this happens on at least some other cluster > filesystems because obtaining a correct value fort st_size requires finding > the consensus answer for the current length of the file, while obtaining > the list of items in a directory may not require the same amount of locking > or consensus work
This has a bunch of interesting ramifications. If you couch the 'find' command correctly, find . -maxdepth 1 -name '*.txt' 'find' does not need to do a 'stat' on the items in '.'. And in that case, it should not, since you've noted that 'stat' might be expensive. Dale