From nobody Fri Nov 24 07:50:22 2023 X-Original-To: dev-commits-src-main@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 4Sc6c93WkBz520g2; Fri, 24 Nov 2023 07:51:05 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1:5]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sc6c86zsDz3HxG; Fri, 24 Nov 2023 07:51:04 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; none List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1700812240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0u4eijx/MvAWNaMNOUhV5xkfoGcAA9TR+LQX4/uoTK8=; b=XBYNCVMn+2kch3+JRg7G0dhof4h0XsNZK0O1LGuEn/51LvlL2YWxHGhl2GWmx/Y7yZRTvO 0w81L3TB1U2pujgJj5Bo/0S7lBv6vxsgFdF5PoM0Etkr6pbmgX/hIdPEO8PkOeOnn1BOUy g722QXfMN0A3hB8UOy3MKXk1vYSKmet3gc24rg/0aBixL3MTOylt+VaF1/7WTMyxrdswxP mYo/WpnLVCIYA2EIWAfjzkyv3MYHGdt9B9Fna3fHFJwWp2XuGgnFqueAIOuGJVWjKMy2Cz GqRUYjSzEXKI+9bO/nLTIpwEohbq5BSdf4yLr1A6GTm5kpDslY2qlG+4xINl6Q== Date: Fri, 24 Nov 2023 08:50:22 +0100 From: Alexander Leidinger To: Rick Macklem , Konstantin Belousov Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: f5f277728ade - main - nfsd: Fix NFS access to .zfs/snapshot snapshots In-Reply-To: <202311231525.3ANFPBo6039293@gitrepo.freebsd.org> References: <202311231525.3ANFPBo6039293@gitrepo.freebsd.org> Message-ID: <987d4593d50b9cbffb9b6443d3825499@Leidinger.net> X-Sender: Alexander@Leidinger.net Organization: No organization, this is a private message. Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=_a63461b2de562d0279d32a4f9afc17b4"; micalg=pgp-sha256 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:34240, ipnet:2a00:1828::/32, country:DE] X-Rspamd-Queue-Id: 4Sc6c86zsDz3HxG This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --=_a63461b2de562d0279d32a4f9afc17b4 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Am 2023-11-23 16:25, schrieb Rick Macklem: > The branch main has been updated by rmacklem: > > URL: > https://cgit.FreeBSD.org/src/commit/?id=f5f277728adec4c5b3e840a1fb16bd16f8cc956d > > commit f5f277728adec4c5b3e840a1fb16bd16f8cc956d > Author: Rick Macklem > AuthorDate: 2023-11-23 15:23:33 +0000 > Commit: Rick Macklem > CommitDate: 2023-11-23 15:23:33 +0000 > > nfsd: Fix NFS access to .zfs/snapshot snapshots > > When a process attempts to access a snapshot under > //.zfs/snapshot, the snapshot is automounted. > However, without this patch, the automount does not > set mnt_exjail, which results in the snapshot not being > accessible over NFS. > > This patch defines a new function called vfs_exjail_clone() > which sets mnt_exjail from another mount point and > then uses that function to set mnt_exjail in the snapshot > automount. A separate patch that is currently a pull request > for OpenZFS, calls this function to fix the problem. May the same/similar fix like for ZFS be needed / useful for nullfs mounted stuff? I have a ZFS dataset which is mounted via nullfs into a jail. This nullfs-mount is then exported via samba. In samba I have the shadow-copy stuff enabled, but it doesn't work, as the jails can't access the snapshot. Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_a63461b2de562d0279d32a4f9afc17b4 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc; size=833 Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmVgVcwACgkQEg2wmwP4 2IZyHBAAiJ0wfCLEY3NtvjcNdxkMlgvXgNv/jGBAKzN0zSUj3VNRYLPkdQonwq2J aDLr2v5O6hMF97zuPCbyZvsrNf8Djc7ZlUMhe+2YjHHYNmFhVklBTMrFqmLuWGq4 0IMMcUyqDdgH9dpO2LvN9FkqEe6iQwKoik6S+VZPcT6DTIa/bN1g98aipTDZChAB mkyR9rK4MyKrVf4JiCISB5vtgOCaCQS7E9x/n908LWvCNEOaBpVPvVJw3GL+eS8a wO3TkuY/FLYnHHvcaD7H4WXSubTWWD5s//ngH6YGbeyH6Q6Axebjg1uyVzYVNrOY 2DnCJjw79rBG3FcR+7FV/6vsFKk/TKD/lZxcrKgMUFiWTjqnAP/XjoHdpgYAh3V5 jIbpBSTTgQbfzSNzDpdGkMIOKgSm4wFvz9Pnt/4UKd+U/ixLDqJL3sclJUuZWTgU BL0H60lBjIeybA1qKTSxyX/AMsEg1tsZ/7qI421TZbj7vgzA7tL1UtP9m1bNfFT8 5VxKQwxtez/U4Vw7fxbcrNEaN4MJsDMqUklSUKTBWON2vpqRKeIW4OQGqfXdZv2r +ctaZbzuZpoAXGm6SJFiL00Rw7Necsmk5ke93+RxnQd17oO64CabB762/Su8PrXx CKKoUVdl/q/c+LJOKQPcSkZS5moFypNvQ5DWzmdPZ5t7iuKv+M8= =r9BZ -----END PGP SIGNATURE----- --=_a63461b2de562d0279d32a4f9afc17b4--