]> git.proxmox.com Git - mirror_zfs.git/commit
Relax error reporting in zpool import and zpool split
authorUmer Saleem <usaleem@ixsystems.com>
Sat, 2 Sep 2023 00:25:11 +0000 (05:25 +0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 2 Sep 2023 17:30:38 +0000 (10:30 -0700)
commit32949f2560bf35ec86dfa5d984514908e0eb3ecc
tree43435e2d6cbe4b3906581eab8ca33e15c521fbe4
parent79ac1b29d5b586fcc63032bfaa385eef4e489a52
Relax error reporting in zpool import and zpool split

For zpool import and zpool split, zpool_enable_datasets is called
to mount and share all datasets in a pool. If there is an error
while mounting or sharing any dataset in the pool, the status of
import or split is reported as failure. However, the changes do
show up in zpool list.

This commit updates the error reporting in zpool import and zpool
split path. More descriptive messages are shown to user in case
there is an error during mount or share. Errors in mount or share
do not effect the overall status of zpool import and zpool split.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
Closes #15216
cmd/zpool/zpool_main.c
include/libzfs.h
lib/libzfs/libzfs_mount.c