From owner-freebsd-fs@FreeBSD.ORG Sun Apr 21 22:24:21 2013 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C9EDDF85; Sun, 21 Apr 2013 22:24:21 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from mail.vx.sk (mail.vx.sk [IPv6:2a01:4f8:150:6101::4]) by mx1.freebsd.org (Postfix) with ESMTP id 89A7F1477; Sun, 21 Apr 2013 22:24:21 +0000 (UTC) Received: from core.vx.sk (localhost [127.0.0.2]) by mail.vx.sk (Postfix) with ESMTP id AC5563BD0D; Mon, 22 Apr 2013 00:24:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.vx.sk Received: from mail.vx.sk by core.vx.sk (amavisd-new, unix socket) with LMTP id h_KBH4F-cDDW; Mon, 22 Apr 2013 00:24:18 +0200 (CEST) Received: from [10.9.8.1] (chello085216226145.chello.sk [85.216.226.145]) by mail.vx.sk (Postfix) with ESMTPSA id 8B5693BD01; Mon, 22 Apr 2013 00:24:18 +0200 (CEST) Message-ID: <51746711.6030707@FreeBSD.org> Date: Mon, 22 Apr 2013 00:24:17 +0200 From: Martin Matuska User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Steve Wills Subject: Re: zfs quota not set References: <51742944.3030804@FreeBSD.org> In-Reply-To: <51742944.3030804@FreeBSD.org> X-Enigmail-Version: 1.5.1 Content-Type: multipart/mixed; boundary="------------080901040705050207000201" Cc: freebsd-fs@FreeBSD.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Apr 2013 22:24:21 -0000 This is a multi-part message in MIME format. --------------080901040705050207000201 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit This is a new bug introduced in libzfs_core. It happens only on pools up to version 21. I have reported the problem and proposed a patch to illumos: https://www.illumos.org/issues/3739 As of now, you can try a kernel (or just the zfs module) with the attached patch applied. I am discussing the fix with Illumos guys, if they have no objections I will put it to HEAD with an asap MFC. mm On 21.4.2013 20:00, Steve Wills wrote: > Hi, > > I am running r249735 and seem to have some trouble with setting ZFS > quotas: > > % zfs get all zroot/tmp | grep quota > zroot/tmp quota none default > zroot/tmp refquota none local > % sudo zfs set quota=1g zroot/tmp > % sudo zfs set refquota=1g zroot/tmp > % zfs get all zroot/tmp | grep quota > zroot/tmp quota none default > zroot/tmp refquota 1G local > % > > Any ideas? > > Thanks, > Steve > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" -- Martin Matuska FreeBSD committer http://blog.vx.sk --------------080901040705050207000201 Content-Type: text/plain; charset=windows-1250; name="dsl_prop.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dsl_prop.c.patch" Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c =================================================================== --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c (revision 249649) +++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c (working copy) @@ -557,10 +557,6 @@ } if (version < SPA_VERSION_RECVD_PROPS) { - zfs_prop_t prop = zfs_name_to_prop(propname); - if (prop == ZFS_PROP_QUOTA || prop == ZFS_PROP_RESERVATION) - return; - if (source & ZPROP_SRC_NONE) source = ZPROP_SRC_NONE; else if (source & ZPROP_SRC_RECEIVED) --------------080901040705050207000201--