gluster-devel
[Top][All Lists]
Advanced

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

[Gluster-devel] "head -c1" vs. "ls -la"


From: Gordan Bobic
Subject: [Gluster-devel] "head -c1" vs. "ls -la"
Date: Tue, 17 Feb 2009 20:11:21 +0000
User-agent: Thunderbird 2.0.0.19 (X11/20090107)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]