On 12/03/2015 07:17 AM, Bozhidar Zhelev wrote: > Hello All, > > Kudos for this awesome piece of software and many thanks for the support > and improvements you are providing! :) > > I would want to propose what i think would be very useful feature for FIND > > Can we have argument -crtime, that is similar in behaviour to atime, mtime > & ctime?
We already support -newerBB for comparing birth times of files, where that is known. So such an option should be named -Btime for consistency (not -crtime). > Since there is no kernel API to get that info right away Then you're using the wrong kernel :) BSD and Cygwin already provide birthtime information as part of stat(). Yes, it would be nice for Linux to either enhance stat(), or add xstat() (there has been a proposal in the past, but so far it hasn't made it into the tree). But until Linux makes it easy to get at birthtime, even the existing -newerBB predicate is hard to implement. If you would like to patch gnulib to provide birthtime for Linux software, then multiple software would benefit (GNU coreutils' stat(1), for example). Until then, teaching just findutils how to do a Linux-specific hack to get at birthtime feels a bit counter-productive, when it would be better to fix the kernel or at least gnulib to provide the information easily for everyone to benefit. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature