]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libzfs: FreeBSD doesn't resize partitions for you
authorRyan Moeller <ryan@iXsystems.com>
Fri, 11 Mar 2022 16:52:49 +0000 (11:52 -0500)
committerGitHub <noreply@github.com>
Fri, 11 Mar 2022 16:52:49 +0000 (08:52 -0800)
commit76bcffb7dc7ef620d186caacab266532fb293fde
treee8f0a7ce34fefcfc0f7f7a0c4d5f5b11395599c2
parent1282274f3355bcd11bdae911d9279ef1892f7061
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
lib/libzfs/libzfs_pool.c