Properly mark ZFS properties which are not changeable under FreeBSD.
Reviewed by: pjd
This commit is contained in:
parent
8a5074a99c
commit
622fdeb890
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user