From owner-svn-src-head@freebsd.org Thu Sep 24 06:41:03 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A170D3EE4BD; Thu, 24 Sep 2020 06:41:03 +0000 (UTC) (envelope-from se@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bxlmv3tfVz40Rf; Thu, 24 Sep 2020 06:41:03 +0000 (UTC) (envelope-from se@freebsd.org) Received: from Stefans-MBP-WLAN.fritz.box (p200300cd5f30c8003c8f9e409704137a.dip0.t-ipconnect.de [IPv6:2003:cd:5f30:c800:3c8f:9e40:9704:137a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4BC352E26A; Thu, 24 Sep 2020 06:41:02 +0000 (UTC) (envelope-from se@freebsd.org) To: Warner Losh , "Rodney W. Grimes" Cc: Kyle Evans , Alan Somers , Mateusz Guzik , src-committers , svn-src-all , svn-src-head References: <202009231656.08NGujEs042900@gndrsh.dnsmgr.net> From: Stefan Esser Subject: Re: svn commit: r365643 - head/bin/cp Message-ID: Date: Thu, 24 Sep 2020 08:40:58 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CfUNVJoL9lAqJn99TPi79rit2BDtCwtBr" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 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: Thu, 24 Sep 2020 06:41:03 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CfUNVJoL9lAqJn99TPi79rit2BDtCwtBr Content-Type: multipart/mixed; boundary="etly9rzGRsbsJWSnW0A58ATBnW8E5Hmx6"; protected-headers="v1" From: Stefan Esser To: Warner Losh , "Rodney W. Grimes" Cc: Kyle Evans , Alan Somers , Mateusz Guzik , src-committers , svn-src-all , svn-src-head Message-ID: Subject: Re: svn commit: r365643 - head/bin/cp References: <202009231656.08NGujEs042900@gndrsh.dnsmgr.net> In-Reply-To: --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--