find / without traversing /proc

Eric Blake eblake@redhat.com
Sat Apr 29 00:35:00 GMT 2017


On 04/27/2017 08:11 PM, Andrey Repin wrote:

> 
>> Doesn't the -xdev switch help with this?
> 
> Just keep in mind that -xdev is an extension and different platform may use a
> different way to indicate that find should stick to the current device.

Huh?  find -xdev is specified by POSIX, so it's portable:

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html

-xdev
    The primary shall always evaluate as true; it shall cause find not
to continue descending past directories that have a different device ID
(st_dev, see the stat() function defined in the System Interfaces volume
of POSIX.1-2008). If any -xdev primary is specified, it shall apply to
the entire expression even if the -xdev primary would not normally be
evaluated.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20170429/8b3e69dd/attachment.sig>


More information about the Cygwin mailing list