From nobody Wed May 10 15:13:13 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QGdnn1Hjxz4B24H; Wed, 10 May 2023 15:13:17 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QGdnm5RbVz3xgJ; Wed, 10 May 2023 15:13:16 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTP id wRWzpqOgs6NwhwlVEp7NIk; Wed, 10 May 2023 15:13:16 +0000 Received: from spqr.komquats.com ([70.66.148.124]) by cmsmtp with ESMTPA id wlVCp32ptHFsOwlVDpSRcE; Wed, 10 May 2023 15:13:16 +0000 X-Authority-Analysis: v=2.4 cv=XZqaca15 c=1 sm=1 tr=0 ts=645bb48c a=Cwc3rblV8FOMdVN/wOAqyQ==:117 a=Cwc3rblV8FOMdVN/wOAqyQ==:17 a=kj9zAlcOel0A:10 a=P0xRbXHiH_UA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=EkcXrb_YAAAA:8 a=nNooUi5D4dnfFiwVUc8A:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id E9726144; Wed, 10 May 2023 08:13:13 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 9E7A6111; Wed, 10 May 2023 08:13:13 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Mitchell Horne cc: rgrimes@freebsd.org, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 36db6b04962a - main - hier(7): document /home/ and /usr/home/ In-reply-to: References: <202305101419.34AEJf1x054239@gndrsh.dnsmgr.net> Comments: In-reply-to Mitchell Horne message dated "Wed, 10 May 2023 11:53:45 -0300." List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 10 May 2023 08:13:13 -0700 Message-Id: <20230510151313.9E7A6111@slippy.cwsent.com> X-CMAE-Envelope: MS4xfKlYvE65zMJ/w1QZgo1lkatANhsuWl/JSNpcoELlfwEsjwKXtkwbM+8HPUs+4Mr3V1ECSAOjgvKUFHfayBvvWU6PNp9jZ3DJ/TwsVIcPSGhh8zD8TCBJ 8WxBbxYAegSFWbb4GP2fyuSdtZOk3AhplpgLqr8RUA42oGWNOuObDm7momwEYfxv5m4wzKkPayU+ovKkGvTUlBygOSxXXbsbcez98Gp90p5jJmtBohCOaV47 4Z+/dzWgmlHvLmW4f40gTNRF5wtYHdidxNlKW2vVpIK0ndV86+Yl413gvI5X+rnO7AdFDng6KophryyxLWkVPtvl16fTcbzFK38TgXJbi0ZdE+VJjlVJsKB4 VjsG34tm X-Rspamd-Queue-Id: 4QGdnm5RbVz3xgJ X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N In message , Mitchell Horne w rites: > On 5/10/23 11:19, Rodney W. Grimes wrote: > >> The branch main has been updated by mhorne: > >> > >> URL: https://cgit.FreeBSD.org/src/commit/?id=36db6b04962a01ff7b21592def02d > 4c570dac939 > >> > >> commit 36db6b04962a01ff7b21592def02d4c570dac939 > >> Author: Mitchell Horne > >> AuthorDate: 2023-05-10 12:53:56 +0000 > >> Commit: Mitchell Horne > >> CommitDate: 2023-05-10 13:25:17 +0000 > >> > >> hier(7): document /home/ and /usr/home/ > >> > >> Reviewed by: imp > >> MFC after: 1 week > >> Sponsored by: The FreeBSD Foundation > >> Differential Revision: https://reviews.freebsd.org/D40002 > >> --- > >> share/man/man7/hier.7 | 10 ++++++++++ > >> 1 file changed, 10 insertions(+) > >> > >> diff --git a/share/man/man7/hier.7 b/share/man/man7/hier.7 > >> index ff11289436a1..b6759dd6e65b 100644 > >> --- a/share/man/man7/hier.7 > >> +++ b/share/man/man7/hier.7 > >> @@ -90,6 +90,10 @@ file descriptor files; > >> see > >> .Xr \&fd 4 > >> .El > >> +.It Pa /home/ > >> +user HOME directories. > >> +This is a symlink to > >> +.Pa /usr/home/ > > > > /usr is "contains the majority of user utilities and applications" > > it should not contain home directories. > > > I do not know when this move to usr came about it was traditionally > /home. > > I do not know why /usr/home even exists, it is not needed by > > anything I am aware of. If we have a compatible link it > > should be, usr/home -> ../home and /home should be the > > directory. > > > > I agree that /usr/home is strange, and is unique (?) to FreeBSD. > > The oldest commit in the output of `git log --grep '/usr/home'` is: > > commit f2400d465896a8e4f6fdc57eba840cf49b25bbbd > Author: David Nugent > Date: Fri Jan 3 04:42:18 1997 +0000 > > Implemented /home -> /usr/home symlink kludge. > If home basedir would be created in the root partition, create > it under /usr instead, and symlink /basedir -> /usr/basedir. > > Notes: > svn path=/head/; revision=21242 > > > So it has been this way for 26 years at least. I do not know what to say > about whether /usr "should" contain it, but it does. Usually history matters. I can understand not changing it. On the flip side, I cut my UNIX teeth on SunOS 4 and Solaris where /home was /home -- albeit automounted from /export/home on localhost or some NFS server. In the Red Hat land at $JOB, /home is its own partition (actually an LVM volume). In both cases /home is not in /usr because end-users can fill /usr. This can be problematic operationally because it's yet another headache to deal with should someone fill the filesystem. Filling /usr is more serious than filling /home. As a point of interest, when I installed my first FreeBSD many moons ago I used the Solaris standard of /export/home, using amd (now automount) to serve my /home. I'm not advocating we do this, it's overkill, but /home should not live in /usr. It's a potential headache for any sysadmin. With ZFS the solution is easy. With UFS based systems there are a lot of other factors that go into how we install the "default" from the get-go. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0