BRT should return EOPNOTSUPP
commitc24a480631427852c71900d2c40b213a9c49fc4d
authororomenahar <christianpe96@gmail.com>
Thu, 27 Jul 2023 18:32:34 +0000 (27 20:32 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 27 Jul 2023 23:11:54 +0000 (27 16:11 -0700)
tree6f4ea42759f75fb88ab2b87ffe218b30e94c82d5
parent36d1a3ef4ed923803a5b57c55cd46e071bdb4826
BRT should return EOPNOTSUPP

Return the more descriptive EOPNOTSUPP instead of EXDEV when the
storage pool doesn't support block cloning.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <rob.norris@klarasystems.com>
Signed-off-by: Kay Pedersen <mail@mkwg.de>
Closes #15097
module/os/freebsd/zfs/zfs_vnops_os.c
module/zfs/zfs_vnops.c