misc/176141: [zfs] sharesmb=on makes errors for sharenfs, and still sets the option
Nathan Rich
Nathan.Rich at dynastysystems.com
Thu Feb 14 10:50:00 UTC 2013
>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 root at 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 at first ~]# zfs get -H sharesmb,sharenfs data
data sharesmb off local
data sharenfs off local
[root at 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 at first ~]# zfs get -H sharesmb,sharenfs data
data sharesmb on local
data sharenfs off local
[root at 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 at first ~]# zfs get -H sharesmb,sharenfs data
data sharesmb on local
data sharenfs on local
[root at 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:
More information about the freebsd-bugs
mailing list