Properly mark ZFS properties which are not changeable under FreeBSD.

Reviewed by:	pjd
This commit is contained in:
trasz 2009-10-08 19:45:37 +00:00
parent 8a5074a99c
commit 622fdeb890

View File

@ -1790,9 +1790,14 @@ zfs_prop_set(zfs_handle_t *zhp, const char *propname, const char *propval)
/* 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);