Re: readdir vs. getattr

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

 



Ok, by tweaking the values of acregmin and acregmax I got the expected
behaviour.

What about this double GETATTR on directory itself?

Tigran.

On Thu, Apr 4, 2013 at 6:35 PM, Jim Rees <rees@xxxxxxxxx> wrote:
> Myklebust, Trond wrote:
>
>   On Thu, 2013-04-04 at 12:01 -0400, Jim Rees wrote:
>   > Chuck Lever wrote:
>   >
>   >   > So is this a "ls -l"? Because for "ls" it shouldn't stat all the files.
>   >
>   >   Default these days is ls --color
>   >
>   > No it's not, at least not on linux. From the man page:
>   >
>   > "Using color to distinguish file types is disabled both by default and with
>   > --color=never."
>
>   Yes, but a number of Linux distros override that in /etc/profile. For
>   instance all Red Hat/Fedora distros have aliases for ls that map them to
>   'ls --color=auto'
>
> I was actually just trying to figure out whether the application (ls) was
> doing all those file stats, or whether readdir was somehow doing them by
> mistake. Sounds like it's the application.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux