Date: Thu, 24 Sep 2020 08:40:58 +0200 From: Stefan Esser <se@freebsd.org> To: Warner Losh <imp@bsdimp.com>, "Rodney W. Grimes" <rgrimes@freebsd.org> Cc: Kyle Evans <kevans@freebsd.org>, Alan Somers <asomers@freebsd.org>, Mateusz Guzik <mjguzik@gmail.com>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org> Subject: Re: svn commit: r365643 - head/bin/cp Message-ID: <fc0903cf-fd1f-1c39-13f0-4902c5bc1cd9@freebsd.org> In-Reply-To: <CANCZdfoDpG85jSYs36-oWpxwYymTnVJ2dpAXyk9%2B3Ps7enODmw@mail.gmail.com> References: <CACNAnaH-L%2Bw=SJW1Cw1M63LQi19d%2Bf_8Sv%2BdYUTyE%2BjYQU6nbA@mail.gmail.com> <202009231656.08NGujEs042900@gndrsh.dnsmgr.net> <CANCZdfoDpG85jSYs36-oWpxwYymTnVJ2dpAXyk9%2B3Ps7enODmw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CfUNVJoL9lAqJn99TPi79rit2BDtCwtBr Content-Type: multipart/mixed; boundary="etly9rzGRsbsJWSnW0A58ATBnW8E5Hmx6"; protected-headers="v1" From: Stefan Esser <se@freebsd.org> To: Warner Losh <imp@bsdimp.com>, "Rodney W. Grimes" <rgrimes@freebsd.org> Cc: Kyle Evans <kevans@freebsd.org>, Alan Somers <asomers@freebsd.org>, Mateusz Guzik <mjguzik@gmail.com>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org> Message-ID: <fc0903cf-fd1f-1c39-13f0-4902c5bc1cd9@freebsd.org> Subject: Re: svn commit: r365643 - head/bin/cp References: <CACNAnaH-L+w=SJW1Cw1M63LQi19d+f_8Sv+dYUTyE+jYQU6nbA@mail.gmail.com> <202009231656.08NGujEs042900@gndrsh.dnsmgr.net> <CANCZdfoDpG85jSYs36-oWpxwYymTnVJ2dpAXyk9+3Ps7enODmw@mail.gmail.com> In-Reply-To: <CANCZdfoDpG85jSYs36-oWpxwYymTnVJ2dpAXyk9+3Ps7enODmw@mail.gmail.com> --etly9rzGRsbsJWSnW0A58ATBnW8E5Hmx6 Content-Type: multipart/mixed; boundary="------------320640D24E5E91BD42BC2AA9" Content-Language: en-US This is a multi-part message in MIME format. --------------320640D24E5E91BD42BC2AA9 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Am 23.09.20 um 19:23 schrieb Warner Losh> But for this issue, we're not=20 mounting devfs early enough.=C2=A0 We should > fix that. Removing /dev/null from the boot process likely is never goin= g=20 > to happen because we use it all over the place to discard output...=20 > There's ~200 instances of it in the boot rc scripts, so getting rid of = > it there would also be quite the effort, with the same question. Removal of /dev/null from rc.d scripts should be quite simple, since most cases could just use ">-" (close file descriptor) instead. Other usage could be substituted with ":>" followed by chown. I'd be willing to generate patches for review, if there is any chance such a change might be accepted into -CURRENT. I could not find any use of /dev/zero, but e.g. rc.d/syscons uses ${kbddev} (i.e. /dev/ttyv0) and rc.d/zvol performs swapon on /dev/zvol/${name}, rc.d/random uses /dev/random and so on. But those further references to /dev nodes will in general be NOPs if /dev is not available (some test for existence of the node they rely on, other just fail trying to access them, but without negative effect on going multi-user). Regards, STefan --------------320640D24E5E91BD42BC2AA9-- --etly9rzGRsbsJWSnW0A58ATBnW8E5Hmx6-- --CfUNVJoL9lAqJn99TPi79rit2BDtCwtBr Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAl9sP3oFAwAAAAAACgkQR+u171r99UQH Ewf/RUQjA+049gKu9/g1VbBO8V9j14/MuNVu5wA8fWcWFMJJN9s2XBnCGTlWajvnqF0qnG/b4GkO TZwIjsQxEFCi9CYUg/ghd9dsdk99DWnlUKfB73YgcqIpDXK1bI9pYt+LJBi6lLgMkzZYFY38u3T8 pUCQXPipacJ+Z5Fzw8JDosSJic81wNtPFqLpwQ6tsmePYhPhStGhAmObdP8zjvtp1qcMQNyJ9Wol E1N+NZDKLtaHLqcJMLBkMOFfpRytBC9rP+VKz5CGF7jWU3f6s4CmpuGLiLcfkmjkFod8WXxk1FVg pPAQGD3AhK6Y0LjJW1fTZFDuiSwicvau5RjxpoQRFg== =btfS -----END PGP SIGNATURE----- --CfUNVJoL9lAqJn99TPi79rit2BDtCwtBr--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fc0903cf-fd1f-1c39-13f0-4902c5bc1cd9>