From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48482 invoked by alias); 28 Apr 2017 14:07:57 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 47619 invoked by uid 89); 28 Apr 2017 14:07:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=descending, Repin, andrey, repin X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Apr 2017 14:07:54 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CA76F61BB8 for ; Fri, 28 Apr 2017 14:07:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CA76F61BB8 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=eblake@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com CA76F61BB8 Received: from [10.10.123.177] (ovpn-123-177.rdu2.redhat.com [10.10.123.177]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6D99087B72 for ; Fri, 28 Apr 2017 14:07:54 +0000 (UTC) Subject: Re: find / without traversing /proc To: cygwin@cygwin.com References: <380-22017442784921354@M2W161.mail2web.com> <1188853682.20170428041153@yandex.ru> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <2d6ad098-c844-bf4b-0afd-7631cad2b2b7@redhat.com> Date: Sat, 29 Apr 2017 00:35:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <1188853682.20170428041153@yandex.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="p5HmXXwG8CRp2sOAIFsvf9e4nrfQBVAjO" X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00361.txt.bz2 --p5HmXXwG8CRp2sOAIFsvf9e4nrfQBVAjO Content-Type: multipart/mixed; boundary="UJtkDrCNula01xdVuVurs0vXOWdJXuVrG"; protected-headers="v1" From: Eric Blake To: cygwin@cygwin.com Message-ID: <2d6ad098-c844-bf4b-0afd-7631cad2b2b7@redhat.com> Subject: Re: find / without traversing /proc References: <380-22017442784921354@M2W161.mail2web.com> <1188853682.20170428041153@yandex.ru> In-Reply-To: <1188853682.20170428041153@yandex.ru> --UJtkDrCNula01xdVuVurs0vXOWdJXuVrG Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Content-length: 886 On 04/27/2017 08:11 PM, Andrey Repin wrote: >=20 >> Doesn't the -xdev switch help with this? >=20 > Just keep in mind that -xdev is an extension and different platform may u= se 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. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --UJtkDrCNula01xdVuVurs0vXOWdJXuVrG-- --p5HmXXwG8CRp2sOAIFsvf9e4nrfQBVAjO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJZA0y6AAoJEKeha0olJ0NqkWgH/2iWimitORC2YLnb/rcAF5rw 4oFkkMO+8GAeq6w+M2TdL4FtcgeM+vJk2yHHrjZl8FQlEfY4xnWkx0puHcloDEvM 2mijEkQKkGjeriy2IzJJeWe6GfURWGFNX0viP4Xfkw35cNEL5nvPk4mBkp+DM7AS ANYn5fGcQumXqX3KDVSFaAMDSk6SMz/o+cGwSGejse1OVEGEQc5rqbnYalr+Mqj4 y24/bF9TsTqjEceD3eRfGGKt/I2JxYCTF58/nHzoe8TeQbQjRuqPp8Dm3EK9YoXr w9T1EtRBsSIu+tPRWLc69CRfQURyqtHRa3stKef7PR3jM6Ta5vCE+zJMGsKMmrw= =oWJ5 -----END PGP SIGNATURE----- --p5HmXXwG8CRp2sOAIFsvf9e4nrfQBVAjO--