Files
mirror_zfs/lib/libzfs
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
..
2020-07-10 14:26:00 -07:00
2025-10-13 10:41:42 -07:00
2020-11-17 09:18:52 -08:00
2019-09-02 17:53:27 -07:00