HomeFreeBSD

zpool: do guid-based comparison in is_vdev_cb()

Description

zpool: do guid-based comparison in is_vdev_cb()

is_vdev_cb() uses string comparison to find a matching vdev and
will fallback to comparing the guid via a string. These changes
drop the string comparison and compare the guids instead.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Signed-off-by: Rob Wing <rob.wing@klarasystems.com>
Co-authored-by: Rob Wing <rob.wing@klarasystems.com>
Sponsored-by: Seagate Technology
Submitted-by: Klara, Inc.
Closes #14311

Details

Provenance
rob-wing <98866084+rob-wing@users.noreply.github.com>Authored on Jan 11 2023, 11:14 PM
GitHub <noreply@github.com>Committed on Jan 11 2023, 11:14 PM
Parents
rG926715b9fcf0: Turn default_bs and default_ibs into ZFS_MODULE_PARAMs
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG6f2ffd272cfd: zpool: do guid-based comparison in is_vdev_cb() (authored by rob-wing <98866084+rob-wing@users.noreply.github.com>).Jan 11 2023, 11:14 PM