]> git.ipfire.org Git - thirdparty/coreutils.git/commit
du,chgrp,chmod,chown: use FTS_DEFER_STAT
authorJim Meyering <meyering@redhat.com>
Wed, 11 Feb 2009 11:26:14 +0000 (12:26 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 13 Feb 2009 17:41:01 +0000 (18:41 +0100)
commit982504452d60a87632a5a2f11d1be645e06d8346
tree648357f7b4178fc1f11aa4f1f1d4052eccbac25c
parent48cae1e8642684f0103848b84d5884d1ba2412c8
du,chgrp,chmod,chown: use FTS_DEFER_STAT

* src/du.c (main): Use FTS_DEFER_STAT, for better locality of inode
reference.  Important when traversing file systems with fake inodes.
* src/chgrp.c (main): Likewise.
* src/chmod.c (main): Likewise.
* src/chown.c (main): Likewise.
The only remaining fts client, chcon, doesn't need this, since it goes
further and uses FTS_NOSTAT, which suppresses all non- directory
stat calls.
src/chgrp.c
src/chmod.c
src/chown.c
src/du.c