[Gluster-devel] "head -c1" vs. "ls -la"
    Gordan Bobic 
    gordan at bobich.net
       
    Tue Feb 17 20:11:21 UTC 2009
    
    
  
Is there any reason to prefer:
# find /gluster/mountpoint -type f -exec head -c1 '{}' \;
to
# ls -laR /gluster/mountpoint
for initiating a server sync/heal with AFR? As far as I can tell, the 
latter should (and does) do the same job (the -la forces the open of the 
file inode for stat() data rather than just the parent directory inode), 
and it is faster since there is no process spawn overhead for each file 
being synced.
Gordan
    
    
More information about the Gluster-devel
mailing list