From owner-svn-src-head@freebsd.org Mon Mar 5 16:38:03 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1AD58F3D947; Mon, 5 Mar 2018 16:38:03 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B419C81AA7; Mon, 5 Mar 2018 16:38:02 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (unknown [127.0.1.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id 6D8E51CC46; Mon, 5 Mar 2018 16:38:02 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 2C4CB113A; Mon, 5 Mar 2018 16:38:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id mpyh5rfIkH5n; Mon, 5 Mar 2018 16:37:58 +0000 (UTC) Subject: Re: svn commit: r330436 - head/bin/chflags DKIM-Filter: OpenDKIM Filter v2.10.3 mail.xzibition.com 8A2D61135 To: Bruce Evans , Ian Lepore Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201803050156.w251u7Y8020941@repo.freebsd.org> <1520215860.38056.3.camel@freebsd.org> <20180305140228.P935@besplex.bde.org> From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: Date: Mon, 5 Mar 2018 08:37:58 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180305140228.P935@besplex.bde.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EXNBP6NHEphxYPszBEMjUwEYkFEbwxtMd" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2018 16:38:03 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --EXNBP6NHEphxYPszBEMjUwEYkFEbwxtMd Content-Type: multipart/mixed; boundary="nfyizFNlDLrVdEOF1v75JkIMKxLEUuwwp"; protected-headers="v1" From: Bryan Drewery To: Bruce Evans , Ian Lepore Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: Subject: Re: svn commit: r330436 - head/bin/chflags References: <201803050156.w251u7Y8020941@repo.freebsd.org> <1520215860.38056.3.camel@freebsd.org> <20180305140228.P935@besplex.bde.org> In-Reply-To: <20180305140228.P935@besplex.bde.org> --nfyizFNlDLrVdEOF1v75JkIMKxLEUuwwp Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 3/4/2018 8:30 PM, Bruce Evans wrote: > On Sun, 4 Mar 2018, Ian Lepore wrote: >=20 >> On Mon, 2018-03-05 at 01:56 +0000, Bryan Drewery wrote: >>> >>> Log: >>> \xa0 chflags: Add -x option to not traverse mount points. >> >> Yay! \xa0One day later than I needed it, but still, yay! >=20 > I recently noticed that find(1) needs an option to not look at mount > points at all, and further options to classify mount points so that > you can prune them. >=20 > After reading the above and investigating further, I noticed that -x > is broken in most FreeBSD utilities, since POSIX requires not looking > at mount points at all for the few utilities that support -x.=C2=A0 E.g= =2E, > for du in 2001 draft 7 POSIX: >=20 > 12578=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= -x=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Whe= n evaluating file sizes, evaluate only > those files that have the same device as > 12579=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 the file specified by the file operand. > 12580=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= Specifying more than one of the mutually-exclusive > options -H and -L shall not be considered Yes I'm quite annoyed that my workaround for chflags not having -x, using `find -x ... -exec chflags`, is still trying to modify mountpoints but not descending into them. >=20 > Mount points are on a different device, but FreeBSD du -x is broken by > using FTS_XDEV and not filtering out the mount points. Linux du -x > (an old version in /compat/linyx/usr/bin) works correctly. --=20 Regards, Bryan Drewery --nfyizFNlDLrVdEOF1v75JkIMKxLEUuwwp-- --EXNBP6NHEphxYPszBEMjUwEYkFEbwxtMd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJanXJnAAoJEDXXcbtuRpfP3OAIAJgz2iFO/vuWWpMfUZ8/3R57 LYWSyO+T5krJMg+qtLmrnbN3VKmFyktNgZszSuLa3qiVzFcaTTJiFDom9kqWxhlb Mp9WUn0JTm4nZB05IgGzMwsgdsx6c6hsuG7CXU/nZ6vARJywoV0jGvvEqzq91F6V qq1euJmc4VRky0m6b2Tl8ex2t7gU1Dg6XQKAHBW1Ug0A96bCr1hDoZJitPZ2trgo YAWQGJCqtDYMZ6DZGJZ2witQ3Jo0dPXQ1gwmw4BYTXVjhGowXA9PsCtkepHwYDAS gWAzrTaQ3pNLeLeR7wvB4zp/Uapllo0uA2irL2846yvDGjR4vWWTCdJaD/J5H24= =KL3i -----END PGP SIGNATURE----- --EXNBP6NHEphxYPszBEMjUwEYkFEbwxtMd--