Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2023 08:50:22 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Rick Macklem <rmacklem@freebsd.org>, Konstantin Belousov <kib@freebsd.org>
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
Message-ID:  <987d4593d50b9cbffb9b6443d3825499@Leidinger.net>
In-Reply-To: <202311231525.3ANFPBo6039293@gitrepo.freebsd.org>
References:  <202311231525.3ANFPBo6039293@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <rmacklem@FreeBSD.org>
> AuthorDate: 2023-11-23 15:23:33 +0000
> Commit:     Rick Macklem <rmacklem@FreeBSD.org>
> 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
>     /<dataset>/.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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?987d4593d50b9cbffb9b6443d3825499>