Files
mirror_zfs/lib/libzfs
Christos Longros 304de7f19b libzfs: handle EDOM error in zpool_create
When creating a pool with devices that have incompatible block sizes,
the kernel returns EDOM. However, zpool_create() did not handle this
errno, falling through to zpool_standard_error() which produced a
confusing message about invalid property values.

Add a case EDOM handler in zpool_create() to return EZFS_BADDEV with
a descriptive auxiliary message, consistent with the existing EDOM
handler in zpool_vdev_add().

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Christos Longros <chris.longros@gmail.com>
Closes #18268
2026-03-08 12:59:10 -07:00
..
2020-07-10 14:26:00 -07:00
2026-03-06 11:05:58 -08: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