HomeFreeBSD

Don't panic if setting vdev properties is unsupported for this vdev type

Description

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

Details

Provenance
Yuri Pankov <113725409+yuripv@users.noreply.github.com>Authored on Jul 20 2023, 5:21 PM
GitHub <noreply@github.com>Committed on Jul 20 2023, 5:21 PM
Parents
rG4d2dad04aaa4: Ignore pool ashift property during vdev attachment
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG929173ab42fa: Don't panic if setting vdev properties is unsupported for this vdev type (authored by Yuri Pankov <113725409+yuripv@users.noreply.github.com>).Jul 20 2023, 5:21 PM