[Top][All Lists]

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

Re: "ls -l": Avoid unnecessary getxattr() overhead

From: Bernhard Voelker
Subject: Re: "ls -l": Avoid unnecessary getxattr() overhead
Date: Fri, 17 Feb 2012 14:39:13 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1

On 02/17/2012 02:23 PM, Jim Meyering wrote:
>> Do you think it's worth to distinguish between ENOTSUP and EOPNOTSUPP?
> No, since AFAIK, they can be used interchangeably in this particular context.
> i.e., getfilecon can fail with either, and in each case the result
> is the same for us: we know that all further getfilecon calls
> on the same device will fail with that same result.
>> > I.e. on system returning EOPNOTSUPP, when the files reside on N different
>> > filesystems (or when processed in an unlucky order), then ls would still
> Perhaps I have not understood your example?
> If the files are on different file systems, then we cannot and do not
> use cached failure/errno-values.

Hmm, I was mislead that EOPNOTSUPP would mean "this system does not support
the operation" - at all. I think I was wrong. Scratch it.

Have a nice day,

reply via email to

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