Bug 120289

Summary: "zfs share -a" does not send SIGHUP to mountd
Product: Base System Reporter: Victor Sudakov <sudakov>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 7.0-BETA4   
Hardware: Any   
OS: Any   

Description Victor Sudakov 2008-02-05 11:40:01 UTC
The command "zfs share -a" does not make mountd reread the
configuration file. One must send SIGHUP manually so that mountd
notices changes in /etc/zfs/exports

Fix: 

A workaround: you can use "killall -HUP mountd" after every "zfs share -a" 
command.
How-To-Repeat: 1. Set the "sharenfs=on" property on some filesystem within zfs.
2. Say "zfs unshare -a"
3. Say "zfs share -a"

You won't be able to see the new shares (e.g. in "showmount -e") unless
you send SIGHUP to mountd manually.
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2008-02-05 11:43:19 UTC
State Changed
From-To: open->closed

duplicate of 120288