]> git.proxmox.com Git - mirror_zfs.git/commit
Don't panic if setting vdev properties is unsupported for this vdev type
authorYuri Pankov <113725409+yuripv@users.noreply.github.com>
Thu, 20 Jul 2023 17:21:47 +0000 (19:21 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Jul 2023 17:21:47 +0000 (10:21 -0700)
commit929173ab42fa9482455c8d51ed64326a3d983e41
tree33c9833072599551088d9b81c9cfaebe929770c0
parent4d2dad04aaa436256ef756701aff07af824690c4
Don't panic if setting vdev properties is unsupported for this vdev type

Check that vdev has valid zap and bail out early.

While here, move objid selection out of the loop, it's not going to
change.

Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Yuri Pankov <yuripv@FreeBSD.org>
Closes #15063
module/zfs/vdev.c