http://savannah.gnu.org/bugs/?33724 raised the issue that findutils is
updating directory atime as part of traversing a hierarchy (and,
according to POSIX, this behavior is the correct default).  However, it
would be nice to support the use of fts in a mode where O_NOATIME is
used, so that directories don't appear to have an atime change merely
because fts called readdir.

It looks to me like the only way to do this is to use open(O_NOATIME)
followed by fdopendir() - but we are already using this approach for
other reasons.  So would it be worth a patch that adds a new FTS_NOATIME
flag, and when that flag is set, pass in the O_NOATIME flag to all
directories opened by fts?

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to