HomeFreeBSD

Relax error reporting in zpool import and zpool split

Description

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

Details

Provenance
Umer Saleem <usaleem@ixsystems.com>Authored on Sep 2 2023, 12:25 AM
GitHub <noreply@github.com>Committed on Sep 2 2023, 12:25 AM
Parents
rGbcb1159c095f: Linux 6.5 compat: safe cleanup in spl_proc_fini()
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG71472bf375de: Relax error reporting in zpool import and zpool split (authored by Umer Saleem <usaleem@ixsystems.com>).Sep 2 2023, 12:25 AM