Re: readdir vs. getattr

Myklebust, Trond
2013-04-04T16:15:19Z

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'

--
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@netapp.com