]> 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)
committerGitHub <noreply@github.com>
Sat, 2 Sep 2023 00:25:11 +0000 (17:25 -0700)
commit71472bf375deb4fbd42fd66181aa35864b603b3a
treed9da11a66d38b9f4c59f3061a2fa52d3ee12fa46
parentbcb1159c095f57564914b59f5e7e82170261afb0
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