From nobody Sat Nov 18 06:13:31 2023 X-Original-To: freebsd-current@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 4SXNl02Lxnz51qM6 for ; Sat, 18 Nov 2023 06:14:04 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SXNky6KwGz3KNw for ; Sat, 18 Nov 2023 06:14:02 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=DoXgNjUy2yuJgy5WJzddj4SnLWmsoqPbcQWr/WOMDn8=; b=oatpGvsaJeqa+WWM1K522Te+PyY+zVUkp4UNEqYIOLOd+Wz9jSBtut+/BBekfuv5BkFYm3+nh/F0PQb9McVapAwm6M5LPsZxYeoyOdQG+O/hi83DaIpsj5FJyqhBQbfKwfz4hCcSKrxYHbiWW2kKS23rR1zvFQnwtaZ+ixKF32mK27jED1FfbAJS1AfxMw7/Kc6O9A4CwBRyd3MLp9gDxcFOBEHQTqf9d4aAeHnVnNBwSWg7hbsSJg071MMT0J/bytTE4BZZ1qoAk8A/iQho9b2M3hCEVdR1FhjKY55J2guhJ2Xa/pND7KdAGa+rAvh/ZegS+wFYsYkOloLO1rrmow==; Received: from imac.bk.cs.huji.ac.il ([132.65.179.42] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1r4EaV-000N1Q-NI; Sat, 18 Nov 2023 08:13:51 +0200 From: Daniel Braniss Message-Id: <0837C3D3-AD50-4AA9-996E-2111C28CA2C9@cs.huji.ac.il> Content-Type: multipart/alternative; boundary="Apple-Mail=_5922A834-C00B-4838-9891-4B576339DA31" List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: autofs -hosts maps Date: Sat, 18 Nov 2023 08:13:31 +0200 In-Reply-To: <20231118034747.B044210F@slippy.cwsent.com> Cc: freebsd-current@freebsd.org To: Cy Schubert References: <20231118034747.B044210F@slippy.cwsent.com> X-Mailer: Apple Mail (2.3731.600.7) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:378, ipnet:132.64.0.0/15, country:IL] X-Rspamd-Queue-Id: 4SXNky6KwGz3KNw --Apple-Mail=_5922A834-C00B-4838-9891-4B576339DA31 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 18 Nov 2023, at 5:47, Cy Schubert = wrote: >=20 > Hi, >=20 > The discussion about NFS exports of ZFS snapshots prompted me to play=20= > around with -hosts maps on my network. -hosts maps are mounted on = /net. >=20 > I've discovered that -hosts maps don't work with most shares but do = with=20 > others. I've only played with this for a few minutes so I don't fully=20= > understand why some maps work and others not. Some of underlying=20 > directories that don't work are ZFS while others are UFS. >=20 > Yet, auto_home maps mounting the same directories does work. And = mounting=20 > the shares by hand (using mount_nfs) also works. >=20 > Just putting this out there should someone else have noticed this. >=20 > I'll play around with this a little over the weekend. >=20 >=20 it=E2=80=99s subdirectories that don=E2=80=99t work? if so it=E2=80=99s a bug/feature of -hosts. danny >=20 > --=20 > Cheers, > Cy Schubert > FreeBSD UNIX: Web: https://FreeBSD.org > NTP: Web: https://nwtime.org >=20 > e^(i*pi)+1=3D0 >=20 >=20 > =C2=80=C2=80=C2=80=C2=80=C2=80=C2=80=C2=80=C2=80 >=20 Daniel Braniss danny@cs.huji.ac.il --Apple-Mail=_5922A834-C00B-4838-9891-4B576339DA31 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 18 = Nov 2023, at 5:47, Cy Schubert <Cy.Schubert@cschubert.com> = wrote:

Hi,

The discussion = about NFS exports of ZFS snapshots prompted me to play
around with = -hosts maps on my network. -hosts maps are mounted on /net.

I've = discovered that -hosts maps don't work with most shares but do with =
others. I've only played with this for a few minutes so I don't = fully
understand why some maps work and others not. Some of = underlying
directories that don't work are ZFS while others are = UFS.

Yet, auto_home maps mounting the same directories does work. = And mounting
the shares by hand (using mount_nfs) also = works.

Just putting this out there should someone else have = noticed this.

I'll play around with this a little over the = weekend.



it=E2=80=99s = subdirectories that don=E2=80=99t work?
if so it=E2=80=99s a = bug/feature of = -hosts.

danny


--
Cheers,
Cy Schubert = <Cy.Schubert@cschubert.com>
FreeBSD UNIX: =  <cy@FreeBSD.org>   Web: =  https://FreeBSD.org
NTP: =           <cy@nwtime.= org>    Web:  https://nwtime.org

= e^(i*pi)+1=3D0


=C2=80=C2=80=C2=80=C2=80=C2=80=C2=80=C2=80= =C2=80


Daniel = Braniss
danny@cs.huji.ac.il



= --Apple-Mail=_5922A834-C00B-4838-9891-4B576339DA31--