>Number:         176141
>Category:       misc
>Synopsis:       [zfs] sharesmb=on makes errors for sharenfs, and still sets 
>the option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 14 10:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Nathan Rich
>Release:        9.1-RELEASE
>Organization:
Dynasty Systems
>Environment:
FreeBSD first 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 
UTC 2012     r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
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.
>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 ~]#

>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!

>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to