Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2013 00:24:17 +0200
From:      Martin Matuska <mm@FreeBSD.org>
To:        Steve Wills <swills@FreeBSD.org>
Cc:        freebsd-fs@FreeBSD.org
Subject:   Re: zfs quota not set
Message-ID:  <51746711.6030707@FreeBSD.org>
In-Reply-To: <51742944.3030804@FreeBSD.org>
References:  <51742944.3030804@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



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