Re: Re: AFR self-healing, a better command line?

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

 



On Fri, Apr 11, 2008 at 10:20 AM, Brandon Lamb <brandonlamb@xxxxxxxxx> wrote:
> On Thu, Apr 10, 2008 at 9:49 PM, Brandon Lamb <brandonlamb@xxxxxxxxx> 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.

Yes that would be more efficient theorytically. Even better would be a perl
script which traverses the directory tree structure which just does open()
and close().
Regards
Krishna


>  >
>  > ?
>  >
>  > Brandon
>
>  Oops, one correction, I added the -depth my self, so minus that part
>  of the command line.
>
>
>
>
>  _______________________________________________
>  Gluster-devel mailing list
>  Gluster-devel@xxxxxxxxxx
>  http://lists.nongnu.org/mailman/listinfo/gluster-devel
>




[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