From nobody@FreeBSD.org  Fri Nov 18 00:14:22 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 538FE106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 00:14:22 +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 42FD78FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 00:14:22 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pAI0EMxp088492
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 00:14:22 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pAI0ELMw088466;
	Fri, 18 Nov 2011 00:14:21 GMT
	(envelope-from nobody)
Message-Id: <201111180014.pAI0ELMw088466@red.freebsd.org>
Date: Fri, 18 Nov 2011 00:14:21 GMT
From: "Kevin M. Kilbride" <fbsd@ssl.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Option parse failure for 'aclmode' when creating filesystem with 'zfs' utility
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162645
>Category:       bin
>Synopsis:       zfs(1): Option parse failure for 'aclmode' when creating filesystem with 'zfs' utility
>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:   Fri Nov 18 00:20:10 UTC 2011
>Closed-Date:    
>Last-Modified:  Sun Nov 20 20:22:58 UTC 2011
>Originator:     Kevin M. Kilbride
>Release:        9.0-RC2
>Organization:
>Environment:
(generic amd64; booted from distributed usb flash image)
>Description:
The command 'zfs create -o aclmode=<anything> ...' will invariably fail with a parsing error that reports an invalid option argument; however, creating a filesystem without the option and then subsequently running 'zfs set aclmode=<anything> ...' on the same filesystem succeeds and can be verified with 'zfs get all ...' on the filesystem.

This behavior is not observed for the aclinherit option (or any other option that I have tried).
>How-To-Repeat:
Deterministic. See above.
>Fix:
I don't have time to dig through any code right now, but it seems quite likely that there is a typo somewhere in the option parser for the 'create' module of the 'zfs' utility.

>Release-Note:
>Audit-Trail:
>Unformatted:
