gluster-devel
[Top][All Lists]
Advanced

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

Re: [Gluster-devel] Re: AFR self-healing, a better command line?


From: Anand Avati
Subject: Re: [Gluster-devel] Re: AFR self-healing, a better command line?
Date: Fri, 11 Apr 2008 10:26:21 +0530

Brandon,
  the idea is just to cause open() on the file. -n1 or -c1 makes no
difference.

avati

2008/4/11, Brandon Lamb <address@hidden>:
>
> On Thu, Apr 10, 2008 at 9:49 PM, Brandon Lamb <address@hidden>
> wrote:
> > Hello,
> >
> > So I have seen this suggested as the way to trigger self-heal
> >
> > find /mnt/webcluster2 -depth -type f -exec head -n 1 {} \; >/dev/null
> >
> > I am using fedora 8. according to the man pages -n 1 will tell head to
> > print the first line of every file.
> >
> > There is also the -c flag
> >
> > find /mnt/webcluster2 -depth -type f -exec head -c 1 {} \; >/dev/null
> >
> > Which the man page says will print the first 1 byte(s) of every file.
> >
> > Would the -c 1 be better/more efficient than -n 1. If my understanding
> > is correct, it would only have to read the first byte instead of the
> > first line.
> >
> > ?
> >
> > Brandon
>
>
> Oops, one correction, I added the -depth my self, so minus that part
> of the command line.
>
>
>
> _______________________________________________
> Gluster-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>



-- 
If I traveled to the end of the rainbow
As Dame Fortune did intend,
Murphy would be there to tell me
The pot's at the other end.


reply via email to

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