Bug 176141 - ZFS: sharesmb=on makes errors for sharenfs, and still sets the option
Summary: ZFS: sharesmb=on makes errors for sharenfs, and still sets the option
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2013-02-14 10:50 UTC by Nathan Rich
Modified: 2023-05-29 14:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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