mirror_zfs/tests/zfs-tests
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
..
callbacks CI: Add Alpine Linux 3.23 runner to the pipeline (#18087) 2025-12-30 09:29:48 -08:00
cmd Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
include Linux 7.0: explicitly set setlease handler to kernel implementation 2026-02-22 11:39:06 -08:00
tests libzfs: handle EDOM error in zpool_create 2026-03-08 12:59:10 -07:00
.gitignore autoconf: use include directives instead of recursing down cmd 2022-05-10 10:18:38 -07:00
Makefile.am build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00