Date: Mon, 5 Mar 2018 08:37:58 -0800 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Bruce Evans <brde@optusnet.com.au>, Ian Lepore <ian@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r330436 - head/bin/chflags Message-ID: <a49d3beb-9780-4b3d-03e6-b9ccb77baab9@FreeBSD.org> In-Reply-To: <20180305140228.P935@besplex.bde.org> References: <201803050156.w251u7Y8020941@repo.freebsd.org> <1520215860.38056.3.camel@freebsd.org> <20180305140228.P935@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --EXNBP6NHEphxYPszBEMjUwEYkFEbwxtMd Content-Type: multipart/mixed; boundary="nfyizFNlDLrVdEOF1v75JkIMKxLEUuwwp"; protected-headers="v1" From: Bryan Drewery <bdrewery@FreeBSD.org> To: Bruce Evans <brde@optusnet.com.au>, Ian Lepore <ian@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: <a49d3beb-9780-4b3d-03e6-b9ccb77baab9@FreeBSD.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a49d3beb-9780-4b3d-03e6-b9ccb77baab9>