From owner-freebsd-hackers@freebsd.org Thu May 7 18:01:00 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 E1B392DFEF4 for ; Thu, 7 May 2020 18:01:00 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49J1V43zJsz4VVv for ; Thu, 7 May 2020 18:01:00 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.nyi.freebsd.org (Postfix) id 8862E2DFEF3; Thu, 7 May 2020 18:01:00 +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 882812DFEF2 for ; Thu, 7 May 2020 18:01:00 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49J1V406tzz4VVt for ; Thu, 7 May 2020 18:00:59 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72b.google.com with SMTP id q7so7113214qkf.3 for ; Thu, 07 May 2020 11:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=c53ajApmQ/zHPDy3RiN3YKCHD6NENGfiB1cVrJNjRRc=; b=U9FVM3M+ejFXM8+QN5EGHs68oCY0QZyiDyG55UjBdiX5KuK9lWRV5dh2407poLDNbG 467KFYEWTXkX3Q1MCvqQBNOi+B9rvShaxngrmUe+5wVAQOZY18ZfGlkCZr2YogVkiw63 pPvkm2P7wX//oqxF0yCu84ivmsSA6D7v7Jc3SyeTUIU/52kvwIq5GSjtfz4zu2Yst7/Z 0EP9SfPKm+sRM1KL1qB7h1kjmjuR6B5il0E0VjD3oRO8PNsvZmqvMpsO43H6m4SZVyzS PGYOox9su2humaxBT/ZAztjcpGBglSMgs4MFnFtW02qYLz2wuh2KjBaaNGYIa5C20lfm n1lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=c53ajApmQ/zHPDy3RiN3YKCHD6NENGfiB1cVrJNjRRc=; b=ChGLUXZ8xJN63UBrenRuZYq4Ky37pMJf6ntN5VNR/H+9loHNeVruiP7Jssx50Lt5O0 1KyxCWrnmIpDydHvmfZW804F2N1Lq6yXNbSniDV6y9nTTm+yjXwpgNMb3zkkv61FOAb+ pUevebeJvmLnEL8ZKOgZhfe3f9+R3uHwTCqcVKBdMp/0O6BVd2Eu7vl+5h3o44+w0h+n vj8iVv8AONuMznEpNta76bsqGYdqSbMjyLdRYkmXTX0IzFvLgIxOxki/IaJc934F1iZf 7LTnk4LTlNZSmNDqUurYb/WXD3PvTlMwuI6rvACv8sWdM+6CINI32AgNxMoJhHVV8oLq FE/g== X-Gm-Message-State: AGi0PuZEj/h37fo+AwIBHiTdn/bS16j6FWCs2Y7i2oFwQSwziKAQD08d 2NkIwv+dD0xYhorlTfzp/U2w+iEKDJ4FcrTw1S/vyA== X-Google-Smtp-Source: APiQypIt7SrtB3Pr4RIgL5IvHENkGlo5Eo5/+8YU481eSyKwIR89Ks4kGqwVPeFvvZ/20vFENDN+Kc5/63y+iZCdNic= X-Received: by 2002:a37:a9d6:: with SMTP id s205mr14188819qke.380.1588874458943; Thu, 07 May 2020 11:00:58 -0700 (PDT) MIME-Version: 1.0 References: <20200507112346.GA53286@freefall.freebsd.org> <202005071626.047GQQH1048671@gndrsh.dnsmgr.net> <20200507174554.3agocyzveprspnyi@nerd-thinkpad.local> In-Reply-To: <20200507174554.3agocyzveprspnyi@nerd-thinkpad.local> From: Warner Losh Date: Thu, 7 May 2020 12:00:47 -0600 Message-ID: Subject: Re: Regarding /cdrom in hier(7) To: Daniel Ebdrup Jensen , "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 49J1V406tzz4VVt X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=U9FVM3M+; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::72b) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-4.02 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[b.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.02)[ip: (-9.30), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.30 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 18:01:00 -0000 On Thu, May 7, 2020 at 11:46 AM Daniel Ebdrup Jensen wrote: > 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_strategy.c?r1=8701&r2=8702&pathrev=8790& > >> [2]: > https://svnweb.freebsd.org/base/head/release/sysinstall/cdrom.c?revision=21937&view=markup&pathrev=21937 > >> [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 > 255.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/ > > > >-- > >Rod Grimes > rgrimes@freebsd.org > > Thanks, Rod. > > That's why I thought I'd ask first, because I knew it was not just the > man-page > that needed tending to - though I see you've found even more instances > than I > did in a quick grep through things. I'll make a note of all the places, > then > wait a bit longer to see if anyone has anything to say on the topic, then > set to it. > > Hopefully I'll get around to it some time before hedgehogs start > hibernating. :) > The handbook also has a lot of references too: % cd doc/head % grep -r /cdrom en_US.ISO8859-1/ | grep -v cdrom.com | wc 478 1457 56420 Warner