HomeFreeBSD

libzfs: FreeBSD doesn't resize partitions for you

Description

libzfs: FreeBSD doesn't resize partitions for you

This code can be failure prone on FreeBSD, where zfsd will pass a guid
as the vdev path to online. The guid causes zfs_resolve_shortname to
fail because it expects a path. We can just skip the whole ordeal.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes #12083

Details

Provenance
freqlabsAuthored on Mar 11 2022, 4:52 PM
GitHub <noreply@github.com>Committed on Mar 11 2022, 4:52 PM
Parents
rG1282274f3355: Add physical device size to SIZE column in 'zpool list -v'
Branches
Unknown
Tags
Unknown