gluster-devel
[Top][All Lists]
Advanced

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

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


From: Krishna Srinivas
Subject: Re: [Gluster-devel] "head -c1" vs. "ls -la"
Date: Wed, 18 Feb 2009 11:47:41 +0530

On Wed, Feb 18, 2009 at 1:41 AM, Gordan Bobic <address@hidden> wrote:
> Is there any reason to prefer:
>
> # find /gluster/mountpoint -type f -exec head -c1 '{}' \;

This was necessary in the old code as selfheal code was implemented in
open() flow.

>
> to
>
> # ls -laR /gluster/mountpoint

This works in the recent code (2.0 rc1) as selfheal is implemented in
lookup() flow. lookup() is done on an inode just before it is
accessed.

Krishna

>
> 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
>
>
> _______________________________________________
> Gluster-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>




reply via email to

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