From owner-freebsd-hackers@freebsd.org Thu May 7 17:45:57 2020 Return-Path: Delivered-To: freebsd-hackers@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 3851A2DF928 for ; Thu, 7 May 2020 17:45:57 +0000 (UTC) (envelope-from debdrup@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49J18j0prSz4TNf for ; Thu, 7 May 2020 17:45:57 +0000 (UTC) (envelope-from debdrup@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1BD4E2DF927; Thu, 7 May 2020 17:45:57 +0000 (UTC) Delivered-To: hackers@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 1B9AE2DF926 for ; Thu, 7 May 2020 17:45:57 +0000 (UTC) (envelope-from debdrup@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) server-signature RSA-PSS (4096 bits) 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 49J18h72wDz4TNd for ; Thu, 7 May 2020 17:45:56 +0000 (UTC) (envelope-from debdrup@FreeBSD.org) Received: from nerd-thinkpad.local (unknown [85.27.246.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: debdrup) by smtp.freebsd.org (Postfix) with ESMTPSA id A63F5529B for ; Thu, 7 May 2020 17:45:56 +0000 (UTC) (envelope-from debdrup@FreeBSD.org) Date: Thu, 7 May 2020 19:45:54 +0200 From: Daniel Ebdrup Jensen To: hackers@freebsd.org Subject: Re: Regarding /cdrom in hier(7) Message-ID: <20200507174554.3agocyzveprspnyi@nerd-thinkpad.local> Mail-Followup-To: Daniel Ebdrup Jensen , hackers@freebsd.org References: <20200507112346.GA53286@freefall.freebsd.org> <202005071626.047GQQH1048671@gndrsh.dnsmgr.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rinasj5emo2qelua" Content-Disposition: inline In-Reply-To: <202005071626.047GQQH1048671@gndrsh.dnsmgr.net> X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2020 17:45:57 -0000 --rinasj5emo2qelua Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 07, 2020 at 09:26:26AM -0700, Rodney W. Grimes wrote: >> After a bit of a long conversation on IRC, I've concluded that perhaps >> it's time for the /cdrom entry in hier(7) to be sent off to better >> pastures. >> >> It's got a bit of a weird history where, before it was implemented, >> sysinstall used /mnt/dists until that was changed on the 22nd of May >> 1995, as shown on [1] - and it isn't readily apparent why it was >> changed, as presumably information from cdroms could easily have been >> extracted into /mnt/dists from /mnt/cdrom? >> >> After then, it spent a bunch of years being hard-coded, until on >> the 22nd of January, 1997 when it was changed to fix media >> initialization, as shown on [2]. >> >> Media initialization then got moved, along with the rest of >> sysinstall, with [3], where it spent its days until [4] where >> nwhitehorn@ gave it a proper sendoff. >> >> So my proposal is this: Do we remove /cdrom from hier(7), because at >> this point nobody should've been using it some time after 1997, or do >> we keep it around since people might still be using it? >> >> Yours hopefully, >> Daniel Ebdrup Jensen >> >> [1]: https://svnweb.freebsd.org/base/head/release/sysinstall/media_strat= egy.c?r1=3D8701&r2=3D8702&pathrev=3D8790& >> [2]: https://svnweb.freebsd.org/base/head/release/sysinstall/cdrom.c?rev= ision=3D21937&view=3Dmarkup&pathrev=3D21937 >> [3]: https://svnweb.freebsd.org/changeset/base/71150 >> [4]: https://svnweb.freebsd.org/changeset/base/225937 > > >It is time to go, BUTT you need to clean up more than just hier(7), >as this like most changes in FreeBSD is a weed and it has roots >all over the place: > >:root {1007}# find /usr/share/man -type f | xargs zgrep -i /cdrom >./man1/locate.1.gz:$ locate -d $HOME/lib/mydb::/cdrom/locate.database foo >./man1/locate.1.gz:.Pa /cdrom/locate.database . >./man1/cdcontrol.1.gz:.Pa /dev/cdrom , >./man1/recoverdisk.1.gz:recoverdisk /cdrom/file.avi file.avi >./man8/ggatec.8.gz:client# mount_cd9660 /dev/ggate0 /cdrom >./man8/mount.8.gz:mount -t cd9660 -o -e /dev/cd0 /cdrom >./man8/mount.8.gz:/sbin/mount_cd9660 -e /dev/cd0 /cdrom >./man8/mount_cd9660.8.gz:.Dl "mount_cd9660 -o rw -v -s 0 /dev/cd0 /cdrom" >./man5/devfs.conf.5.gz:.Pa /dev/cdrom >./man5/devfs.conf.5.gz:.Pa /dev/cdrom >./man5/exports.5.gz:/cdrom -alldirs,quiet,ro -network 192.168.33.0 -mask 2= 55.255.255.0 >./man5/exports.5.gz:.Pa /cdrom >./man5/exports.5.gz:.Pa /cdrom >./man5/exports.5.gz:.Pa /cdrom >./man5/exports.5.gz:.Pa /cdrom , >./man5/exports.5.gz:.Pa /cdrom >./man5/fstab.5.gz:/dev/cd0 /cdrom cd9660 ro,noauto 0 = 0 >./man7/hier.7.gz:.It Pa /cdrom/ > >--=20 >Rod Grimes rgrimes@freebsd= =2Eorg Thanks, Rod. That's why I thought I'd ask first, because I knew it was not just the man-= page=20 that needed tending to - though I see you've found even more instances than= I=20 did in a quick grep through things. I'll make a note of all the places, the= n=20 wait a bit longer to see if anyone has anything to say on the topic, then s= et to it. Hopefully I'll get around to it some time before hedgehogs start hibernatin= g. :) Yours respectfully, Daniel Ebdrup Jensen --rinasj5emo2qelua Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAABCgB9FiEEDonNJPbg/JLIMoS6Ps5hSHzN87oFAl60SUtfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDBF ODlDRDI0RjZFMEZDOTJDODMyODRCQTNFQ0U2MTQ4N0NDREYzQkEACgkQPs5hSHzN 87pOgAf7BlZV9xORYX3EvWOFrTBlqE9hDQpYB3jnFUc3i8mN8/UTPEIKANIXE0O0 zUOf5MiOx/veVYrcOei446+dJDjCyf2nyIiR9v4Yf9EvsVrmNlF5M0iNxHkjdR3s hsbqK0dQ7PMQaOmw0kazYqqQ2VBJH70WGuWkMbQ5I6wB1uJc002OqR8p2Lv95O4G qZQvwUY0q6I1X72W2rv0344R1r2X+hHCvIiqYsIRwGUqdsBqN2sJ018rfK5C8YRO jFss9z+EbkorIA6w3Qe1nmav7+oE8vjYuTrTua7RGpI00h6ep0maprX2lQ1ipzM4 eTCcJSQ6RyqTJllyjKl+IzbhgITuWQ== =ipta -----END PGP SIGNATURE----- --rinasj5emo2qelua--