HomeFreeBSD

ZTS: get_persistent_disk_name can return truncated names

Description

ZTS: get_persistent_disk_name can return truncated names

Instead of using only the 3rd element return the entire string after
the split to handle device names with dashes.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Vaibhav Bhanawat <vaibhav.bhanawat@delphix.com>
Closes #15567

Details

Provenance
VaibhavB <88050553+vaibhav-delphix@users.noreply.github.com>Authored on Nov 29 2023, 5:34 PM
GitHub <noreply@github.com>Committed on Nov 29 2023, 5:34 PM
Parents
rG1c38cdfe989d: zdb: fix printf() length for uint64_t devid
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG7d68900af367: ZTS: get_persistent_disk_name can return truncated names (authored by VaibhavB <88050553+vaibhav-delphix@users.noreply.github.com>).Nov 29 2023, 5:34 PM