> O_NOATIME only works if the kernel is 2.6.8 or above.  Wouldn't it make
> sense to try again opening the file without that flag if the first
> open() fails?

It is my understanding that the flag is silently ignored on earlier
kernels.

However, according to the manual page,

       EPERM  The O_NOATIME flag was specified, but the effective user  ID  of
              the  caller  did  not match the owner of the file and the caller
              was not privileged (CAP_FOWNER).

so it may be useful to retry anyway to deal with weird configs.

                                        Juliusz

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Polipo-users mailing list
Polipo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to