Bug 176141

Summary: ZFS: sharesmb=on makes errors for sharenfs, and still sets the option
Product: Base System Reporter: Nathan Rich <Nathan.Rich>
Component: kernAssignee: Bugmeister <bugmeister>
Status: Closed Overcome By Events    
Severity: Affects Only Me Keywords: needs-qa
Priority: Normal    
Version: 9.1-RELEASE   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271704

Description Nathan Rich 2013-02-14 10:50:00 UTC
Once you enable sharesmb on zfs, changing sharenfs to on or off will spit out an error (but still work).

Stems from that setting sharesmb doesn't work but actually toggles the setting.

Fix: 

Either:
1. Change sharesmb=on to NOT actually change the flag
Or:
2. Change error message to display once and be human friendly:
Warning: sharesmb set to 'on' but not supported in FreeBSD!
How-To-Repeat: [root@first ~]# zfs get -H sharesmb,sharenfs data
data    sharesmb        off     local
data    sharenfs        off     local
[root@first ~]# zfs sharesmb=on data
Unsupported share protocol: 1.
Unsupported share protocol: 1.
Unsupported share protocol: 1.
Unsupported share protocol: 1.
Unsupported share protocol: 1.
Unsupported share protocol: 1.
Unsupported share protocol: 1.
[root@first ~]# zfs get -H sharesmb,sharenfs data
data    sharesmb        on      local
data    sharenfs        off     local
[root@first ~]# zfs sharenfs=on data
Unsupported share protocol: 1.
Unsupported share protocol: 1.
Unsupported share protocol: 1.
Unsupported share protocol: 1.
Unsupported share protocol: 1.
Unsupported share protocol: 1.
Unsupported share protocol: 1.
[root@first ~]# zfs get -H sharesmb,sharenfs data
data    sharesmb        on      local
data    sharenfs        on      local
[root@first ~]#
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-02-14 11:15:44 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:29 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2025-01-19 06:35:32 UTC
^Triage: I'm sorry that this PR did not get addressed in a timely fashion.

By now, the version that it was created against is long out of support.
As well, many newer versions of ZFS have been imported.

Please re-open if it is still a problem on a supported version.