mirror_zfs/lib
Christos Longros 040ba7a7ca
libzfs: improve error message for zpool create with ENXIO
When zpool create fails because a vdev cannot be opened (ENXIO),
the error falls through to zpool_standard_error() which reports
the generic 'one or more devices is currently unavailable'. This
is misleading when the real cause is a block size mismatch or
other device open failure.

Add an explicit ENXIO case in zpool_create()'s error handling to
provide a more descriptive message.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Christos Longros <chris.longros@gmail.com>
Closes #18184
Closes #11087
2026-02-10 13:19:44 -08:00
..
libavl build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libefi build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libicp build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libnvpair build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libspl build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libzdb build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libzfs libzfs: improve error message for zpool create with ENXIO 2026-02-10 13:19:44 -08:00
libzfs_core build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libzfsbootenv build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libzpool build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libzstd Zstd: Integrate v1.5.7 into the ZFS build system 2026-01-20 13:41:06 -08:00
libzutil build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
Makefile.am build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00