From owner-freebsd-bugs@FreeBSD.ORG Thu Feb 14 10:50:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BFE9A648 for ; Thu, 14 Feb 2013 10:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A3F5780C for ; Thu, 14 Feb 2013 10:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1EAo0Jx001947 for ; Thu, 14 Feb 2013 10:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1EAo0HQ001946; Thu, 14 Feb 2013 10:50:00 GMT (envelope-from gnats) Resent-Date: Thu, 14 Feb 2013 10:50:00 GMT Resent-Message-Id: <201302141050.r1EAo0HQ001946@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nathan Rich Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3762019B for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/176141: [zfs] sharesmb=on makes errors for sharenfs, and still sets the option X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 10:50:00 -0000 >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: