From nobody@FreeBSD.org  Thu Feb 14 10:41:21 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 3762019B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Feb 2013 10:41:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 105AF648
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Feb 2013 10:41:21 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r1EAfKU1059486
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Feb 2013 10:41:20 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r1EAfKVl059480;
	Thu, 14 Feb 2013 10:41:20 GMT
	(envelope-from nobody)
Message-Id: <201302141041.r1EAfKVl059480@red.freebsd.org>
Date: Thu, 14 Feb 2013 10:41:20 GMT
From: Nathan Rich <Nathan.Rich@dynastysystems.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [zfs] sharesmb=on makes errors for sharenfs, and still sets the option
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         176141
>Category:       kern
>Synopsis:       [zfs] sharesmb=on makes errors for sharenfs, and still sets the option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>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:  Thu Feb 14 11:16:01 UTC 2013
>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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Feb 14 11:15:44 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176141 
>Unformatted:
