Bug#975873: Please hook zfs-share up to nfs-kernel-server stop+start
Trent W. Buck
trentbuck at gmail.com
Sun Jan 10 07:34:08 GMT 2021
PPS: code links below
Trent W. Buck wrote:
> Michael Biebl wrote:
> > I never used ZFS, so I basically have zero knowledge how it is supposed to work.
>
> Here is a rough summary, I hope this helps!
>
> * USUALLY that is all you need.
> ZFS calls mount/umount/exportfs/... automatically when appropriate,
> so the running system matches the ZFS properties.
linux nfs hooks:
https://github.com/openzfs/zfs/blob/master/lib/libshare/os/linux/nfs.c
> * You can call "zfs unshare" to manually stop NFS/SMB shares configured via ZFS properties.
> * You can call "zfs share" to manually start NFS/SMB shares configured via ZFS properties.
zfs share entrypoint:
https://github.com/openzfs/zfs/blob/master/cmd/zfs/zfs_main.c#L235
NFS-related manpages:
https://github.com/openzfs/zfs/blob/master/man/man8/zfs-share.8
https://github.com/openzfs/zfs/blob/master/man/man8/zfsprops.8#L1582
overview manpages:
https://github.com/openzfs/zfs/blob/master/man/man8/zfsconcepts.8
https://github.com/openzfs/zfs/blob/master/man/man8/zpoolconcepts.8
NOTE: in zfs 0.8, there were 2 great big manpages.
in zfs 2.0, there are lots of little manpages.
More information about the Pkg-systemd-maintainers
mailing list