Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2013 10:41:20 GMT
From:      Nathan Rich <Nathan.Rich@dynastysystems.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/176141: [zfs] sharesmb=on makes errors for sharenfs, and still sets the option
Message-ID:  <201302141041.r1EAfKVl059480@red.freebsd.org>
Resent-Message-ID: <201302141050.r1EAo0HQ001946@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302141041.r1EAfKVl059480>