"head -c1" vs. "ls -la"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux