Fix readonly check for vdev user propertiesmaster
commit1acd2469643f8543f2941cdc72f977d56521c4c9
authorAlexander Motin <mav@FreeBSD.org>
Fri, 20 Dec 2024 22:25:35 +0000 (20 17:25 -0500)
committerGitHub <noreply@github.com>
Fri, 20 Dec 2024 22:25:35 +0000 (20 17:25 -0500)
treebf4369ac27ec18f107ba390059760383148db137
parent219a89cbbfdcbdc30c3417b56ec3e81fd8370ee5
Fix readonly check for vdev user properties

VDEV_PROP_USERPROP is equal do VDEV_PROP_INVAL and so is not a real
property.  That's why vdev_prop_readonly() does not work right for
it.  In particular it may declare all vdev user properties readonly
on FreeBSD.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16890
module/zfs/vdev.c