nfsv4 set crossmnt on share

rockybulwinkle

Dabbler
Joined
Aug 2, 2021
Messages
25
I am looking for a way to enable the crossmnt on an NFSv4 share. I used to be able to get the NFSv4 cross-filesystem-boundaries working in TrueNAS Core 12, but no longer can in either Scale or Core 13.

If I set the crossmnt option on my share in /etc/exports and restart the NFS server, it does work as expected. Of course this isn't a real solution, because the changes will be lost on reboot.

Is there a way to enable this, or more generally, to add share-specific options?

Note this is the second post I've made regarding NFSv4 cross mounting, but the last one was specifically about Core (which unfortunately remains unresolved). Now I'm asking about Scale.

Thanks!
 

hoshinomori

Cadet
Joined
Feb 28, 2024
Messages
1
I'm not sure if this is a good idea, but it works.
You can modify /usr/lib/python3/dist-packages/middlewared/etc_files/exports.mako directly,
put crossmnt in params like params = ["crossmnt"] in generate_optionsfunction, around line 30. Back to webui and change the nfs config , it will apply to all entries.
 
Top