Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Oct 2009 19:45:37 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197867 - head/cddl/contrib/opensolaris/lib/libzfs/common
Message-ID:  <200910081945.n98Jjbrd031264@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Thu Oct  8 19:45:37 2009
New Revision: 197867
URL: http://svn.freebsd.org/changeset/base/197867

Log:
  Properly mark ZFS properties which are not changeable under FreeBSD.
  
  Reviewed by:	pjd

Modified:
  head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c

Modified: head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c	Thu Oct  8 18:55:12 2009	(r197866)
+++ head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c	Thu Oct  8 19:45:37 2009	(r197867)
@@ -1790,9 +1790,14 @@ zfs_prop_set(zfs_handle_t *zhp, const ch
 
 	/* We don't support those properties on FreeBSD. */
 	switch (prop) {
-	case ZFS_PROP_SHAREISCSI:
 	case ZFS_PROP_DEVICES:
+	case ZFS_PROP_ZONED:
+	case ZFS_PROP_SHAREISCSI:
 	case ZFS_PROP_ISCSIOPTIONS:
+	case ZFS_PROP_XATTR:
+	case ZFS_PROP_VSCAN:
+	case ZFS_PROP_NBMAND:
+	case ZFS_PROP_SHARESMB:
 		(void) snprintf(errbuf, sizeof (errbuf),
 		    "property '%s' not supported on FreeBSD", propname);
 		ret = zfs_error(hdl, EZFS_PERM, errbuf);



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