/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_file_os.c | 81 return (SET_ERROR(error)); in zfs_file_open() 92 return (SET_ERROR(EACCES)); in zfs_file_open() 99 return (SET_ERROR(error)); in zfs_file_open() 135 return (SET_ERROR(EBADF)); in zfs_file_write_impl() 142 return (SET_ERROR(rc)); in zfs_file_write_impl() 146 return (SET_ERROR(EIO)); in zfs_file_write_impl() 161 return (SET_ERROR(rc)); in zfs_file_write() 192 return (SET_ERROR(EBADF)); in zfs_file_read_impl() 196 return (SET_ERROR(rc)); in zfs_file_read_impl() 200 return (SET_ERROR(0)); in zfs_file_read_impl() [all …]
|
H A D | zfs_vnops_os.c | 230 return (SET_ERROR(EPERM)); in zfs_open() 302 return (SET_ERROR(ENOTTY)); in zfs_ioctl() 533 return (SET_ERROR(error)); in zfs_write_simple() 536 error = SET_ERROR(EIO); in zfs_write_simple() 592 return (SET_ERROR(ENOENT)); in zfs_lookup_lock() 668 return (SET_ERROR(ENOTDIR)); in zfs_lookup() 670 return (SET_ERROR(EIO)); in zfs_lookup() 690 return (SET_ERROR(EOPNOTSUPP)); in zfs_lookup() 699 return (SET_ERROR(EINVAL)); in zfs_lookup() 740 return (SET_ERROR(EILSEQ)); in zfs_lookup() [all …]
|
H A D | zfs_ctldir.c | 268 return (SET_ERROR(EINVAL)); in sfs_readdir_common() 271 return (SET_ERROR(EINVAL)); in sfs_readdir_common() 281 return (SET_ERROR(error)); in sfs_readdir_common() 285 return (SET_ERROR(EINVAL)); in sfs_readdir_common() 296 return (SET_ERROR(error)); in sfs_readdir_common() 455 return (SET_ERROR(EACCES)); in zfsctl_common_open() 479 return (SET_ERROR(EACCES)); in zfsctl_common_access() 624 return (SET_ERROR(ENOENT)); in zfsctl_relock_dot() 647 return (SET_ERROR(ENOTSUP)); in zfsctl_root_lookup() 659 err = SET_ERROR(ENOENT); in zfsctl_root_lookup() [all …]
|
H A D | zvol_os.c | 235 return (SET_ERROR(EOPNOTSUPP)); in zvol_geom_open() 249 err = SET_ERROR(ENXIO); in zvol_geom_open() 256 err = SET_ERROR(ENXIO); in zvol_geom_open() 321 err = SET_ERROR(EROFS); in zvol_geom_open() 325 err = SET_ERROR(EBUSY); in zvol_geom_open() 330 err = SET_ERROR(EBUSY); in zvol_geom_open() 362 return (SET_ERROR(ENXIO)); in zvol_geom_close() 681 error = SET_ERROR(ENXIO); in zvol_geom_bio_strategy() 688 error = SET_ERROR(ENXIO); in zvol_geom_bio_strategy() 700 error = SET_ERROR(EROFS); in zvol_geom_bio_strategy() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_ioctl.c | 394 return (SET_ERROR(ENOENT)); in zfs_secpolicy_read() 408 return (SET_ERROR(ENOENT)); in zfs_dozonecheck_impl() 416 return (SET_ERROR(EPERM)); in zfs_dozonecheck_impl() 422 return (SET_ERROR(EPERM)); in zfs_dozonecheck_impl() 426 return (SET_ERROR(EPERM)); in zfs_dozonecheck_impl() 438 return (SET_ERROR(ENOENT)); in zfs_dozonecheck() 449 return (SET_ERROR(ENOENT)); in zfs_dozonecheck_ds() 521 return (SET_ERROR(EPERM)); in zfs_set_slabel_policy() 528 return (SET_ERROR(EINVAL)); in zfs_set_slabel_policy() 537 return (SET_ERROR(EPERM)); in zfs_set_slabel_policy() [all …]
|
H A D | dsl_crypt.c | 174 ret = SET_ERROR(EINVAL); in dsl_crypto_params_create_nvlist() 182 ret = SET_ERROR(EINVAL); in dsl_crypto_params_create_nvlist() 190 ret = SET_ERROR(EINVAL); in dsl_crypto_params_create_nvlist() 197 ret = SET_ERROR(EINVAL); in dsl_crypto_params_create_nvlist() 206 ret = SET_ERROR(EINVAL); in dsl_crypto_params_create_nvlist() 369 return (SET_ERROR(ENOENT)); in dsl_dir_get_encryption_root_ddobj() 381 return (SET_ERROR(ENOENT)); in dsl_dir_get_encryption_version() 419 ret = SET_ERROR(ENOENT); in spa_keystore_wkey_hold_ddobj_impl() 495 ret = SET_ERROR(EACCES); in dsl_crypto_can_set_keylocation() 505 ret = SET_ERROR(EINVAL); in dsl_crypto_can_set_keylocation() [all …]
|
H A D | zfs_vnops.c | 130 return (SET_ERROR(ENXIO)); in zfs_holey_common() 147 return (SET_ERROR(ENXIO)); in zfs_holey_common() 272 error = SET_ERROR(EINVAL); in zfs_setup_direct() 321 return (SET_ERROR(EACCES)); in zfs_read() 327 return (SET_ERROR(EISDIR)); in zfs_read() 335 return (SET_ERROR(EINVAL)); in zfs_read() 452 error = SET_ERROR(EIO); in zfs_read() 623 return (SET_ERROR(EROFS)); in zfs_write() 635 return (SET_ERROR(EPERM)); in zfs_write() 644 return (SET_ERROR(EINVAL)); in zfs_write() [all …]
|
H A D | dmu_recv.c | 355 return (SET_ERROR(ZFS_ERR_STREAM_LARGE_BLOCK_MISMATCH)); in recv_check_large_blocks() 377 return (error == 0 ? SET_ERROR(EBUSY) : error); in recv_begin_check_existing_impl() 381 return (SET_ERROR(EBUSY)); in recv_begin_check_existing_impl() 391 return (error == 0 ? SET_ERROR(EEXIST) : error); in recv_begin_check_existing_impl() 401 return (SET_ERROR(ZFS_ERR_WRONG_PARENT)); in recv_begin_check_existing_impl() 420 return (SET_ERROR(EINVAL)); in recv_begin_check_existing_impl() 424 return (SET_ERROR(EINVAL)); in recv_begin_check_existing_impl() 430 return (SET_ERROR(EACCES)); in recv_begin_check_existing_impl() 446 return (SET_ERROR(ENOTSUP)); in recv_begin_check_existing_impl() 455 return (SET_ERROR(EINVAL)); in recv_begin_check_existing_impl() [all …]
|
H A D | zfs_quota.c | 48 return (SET_ERROR(ENOENT)); in zpl_get_file_info() 59 return (SET_ERROR(EEXIST)); in zpl_get_file_info() 174 return (SET_ERROR(ENOTSUP)); in zfs_userspace_many() 180 return (SET_ERROR(ENOTSUP)); in zfs_userspace_many() 187 return (SET_ERROR(ENOTSUP)); in zfs_userspace_many() 244 return (SET_ERROR(ENOTSUP)); in zfs_userspace_one() 251 return (SET_ERROR(ENOTSUP)); in zfs_userspace_one() 257 return (SET_ERROR(ENOTSUP)); in zfs_userspace_one() 259 return (SET_ERROR(EINVAL)); in zfs_userspace_one() 294 return (SET_ERROR(ENOTSUP)); in zfs_set_userquota() [all …]
|
H A D | hkdf.c | 57 return (SET_ERROR(EIO)); in hkdf_sha512_extract() 77 return (SET_ERROR(EINVAL)); in hkdf_sha512_expand() 113 return (SET_ERROR(EIO)); in hkdf_sha512_expand() 117 return (SET_ERROR(EIO)); in hkdf_sha512_expand() 121 return (SET_ERROR(EIO)); in hkdf_sha512_expand() 125 return (SET_ERROR(EIO)); in hkdf_sha512_expand() 133 return (SET_ERROR(EIO)); in hkdf_sha512_expand()
|
H A D | spa_checkpoint.c | 167 return (SET_ERROR(ZFS_ERR_NO_CHECKPOINT)); in spa_checkpoint_get_stats() 215 return (SET_ERROR(EINTR)); in spa_checkpoint_discard_sync_callback() 460 return (SET_ERROR(ENOTSUP)); in spa_checkpoint_check() 463 return (SET_ERROR(ZFS_ERR_VDEV_TOO_BIG)); in spa_checkpoint_check() 466 return (SET_ERROR(ZFS_ERR_DEVRM_IN_PROGRESS)); in spa_checkpoint_check() 469 return (SET_ERROR(ZFS_ERR_RAIDZ_EXPAND_IN_PROGRESS)); in spa_checkpoint_check() 472 return (SET_ERROR(ZFS_ERR_CHECKPOINT_EXISTS)); in spa_checkpoint_check() 475 return (SET_ERROR(ZFS_ERR_DISCARDING_CHECKPOINT)); in spa_checkpoint_check() 584 return (SET_ERROR(ZFS_ERR_NO_CHECKPOINT)); in spa_checkpoint_discard_check() 587 return (SET_ERROR(ZFS_ERR_DISCARDING_CHECKPOINT)); in spa_checkpoint_discard_check()
|
H A D | zcp.c | 399 return (SET_ERROR(EINVAL)); in zcp_lua_to_nvlist_impl() 409 return (SET_ERROR(EINVAL)); in zcp_lua_to_nvlist_impl() 453 *result = SET_ERROR(ECHRNG); in zcp_convert_return_values() 588 return (SET_ERROR(EINVAL)); in zcp_nvpair_value_to_lua() 891 ri->zri_result = SET_ERROR(ECHRNG); in zcp_eval_impl() 911 ri->zri_result = SET_ERROR(ETIME); in zcp_eval_impl() 913 ri->zri_result = SET_ERROR(EINTR); in zcp_eval_impl() 915 ri->zri_result = SET_ERROR(ECHRNG); in zcp_eval_impl() 936 ri->zri_result = SET_ERROR(ETIME); in zcp_eval_impl() 938 ri->zri_result = SET_ERROR(EINTR); in zcp_eval_impl() [all …]
|
H A D | dataset_kstats.c | 121 return (SET_ERROR(EINVAL)); in dataset_kstats_create() 127 return (SET_ERROR(ENAMETOOLONG)); in dataset_kstats_create() 137 return (SET_ERROR(EINVAL)); in dataset_kstats_create() 143 return (SET_ERROR(ENAMETOOLONG)); in dataset_kstats_create() 151 return (SET_ERROR(ENOMEM)); in dataset_kstats_create()
|
H A D | vdev_draid.c | 878 rc->rc_error = SET_ERROR(ECKSUM); in vdev_draid_map_verify_empty() 1537 return (SET_ERROR(EINVAL)); in vdev_draid_open() 1553 return (SET_ERROR(ENXIO)); in vdev_draid_open() 1575 return (SET_ERROR(ENXIO)); in vdev_draid_open() 1907 rc->rc_error = SET_ERROR(ENXIO); in vdev_draid_io_start_read() 1918 rc->rc_error = SET_ERROR(ESTALE); in vdev_draid_io_start_read() 1955 rc->rc_error = SET_ERROR(ESTALE); in vdev_draid_io_start_read() 2203 return (SET_ERROR(EINVAL)); in vdev_draid_init() 2207 return (SET_ERROR(EINVAL)); in vdev_draid_init() 2215 return (SET_ERROR(EINVAL)); in vdev_draid_init() [all …]
|
H A D | zvol.c | 229 return (SET_ERROR(error)); in zvol_get_stats() 242 return (SET_ERROR(error)); in zvol_get_stats() 252 return (SET_ERROR(EINVAL)); in zvol_check_volsize() 255 return (SET_ERROR(EINVAL)); in zvol_check_volsize() 259 return (SET_ERROR(EOVERFLOW)); in zvol_check_volsize() 280 return (SET_ERROR(error)); in zvol_update_volsize() 312 return (SET_ERROR(error)); in zvol_set_volsize() 314 return (SET_ERROR(EROFS)); in zvol_set_volsize() 328 return (SET_ERROR(error)); in zvol_set_volsize() 365 return (SET_ERROR(error)); in zvol_set_volsize() [all …]
|
H A D | dsl_userhold.c | 61 return (SET_ERROR(E2BIG)); in dsl_dataset_user_hold_check_one() 64 return (SET_ERROR(E2BIG)); in dsl_dataset_user_hold_check_one() 73 error = SET_ERROR(EEXIST); in dsl_dataset_user_hold_check_one() 89 return (SET_ERROR(ENOTSUP)); in dsl_dataset_user_hold_check() 113 return (SET_ERROR(EEXIST)); in dsl_dataset_user_hold_check() 123 error = SET_ERROR(EINVAL); in dsl_dataset_user_hold_check() 378 return (SET_ERROR(EINVAL)); in dsl_dataset_user_release_check_one() 397 error = SET_ERROR(ENOENT); in dsl_dataset_user_release_check_one() 429 return (SET_ERROR(EBUSY)); in dsl_dataset_user_release_check_one() 469 error = (SET_ERROR(EINVAL)); in dsl_dataset_user_release_check()
|
H A D | dmu_send.c | 287 return (SET_ERROR(EINTR)); in dump_record() 316 return (SET_ERROR(EINTR)); in dump_record() 362 return (SET_ERROR(EINTR)); in dump_free() 381 return (SET_ERROR(EINTR)); in dump_free() 397 return (SET_ERROR(EINTR)); in dump_free() 424 return (SET_ERROR(EINTR)); in dump_redact() 440 return (SET_ERROR(EINTR)); in dump_redact() 483 return (SET_ERROR(EINTR)); in dmu_dump_write() 559 return (SET_ERROR(EINTR)); in dmu_dump_write() 573 return (SET_ERROR(EINTR)); in dump_write_embedded() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | spa_misc_os.c | 65 return (SET_ERROR(error)); in param_set_deadman_ziotime() 79 return (SET_ERROR(error)); in param_set_deadman_synctime() 94 return (SET_ERROR(error)); in param_set_slop_shift() 97 return (SET_ERROR(-EINVAL)); in param_set_slop_shift() 101 return (SET_ERROR(error)); in param_set_slop_shift()
|
H A D | zfs_vnops_os.c | 193 return (SET_ERROR(EPERM)); in zfs_open() 384 error = SET_ERROR(EIO); in zfs_write_simple() 457 return (SET_ERROR(ENOTDIR)); in zfs_lookup() 459 return (SET_ERROR(EIO)); in zfs_lookup() 485 return (SET_ERROR(EINVAL)); in zfs_lookup() 509 return (SET_ERROR(ENOTDIR)); in zfs_lookup() 525 return (SET_ERROR(EILSEQ)); in zfs_lookup() 629 return (SET_ERROR(EINVAL)); in zfs_create() 632 return (SET_ERROR(EINVAL)); in zfs_create() 642 return (SET_ERROR(EILSEQ)); in zfs_create() [all …]
|
H A D | zfs_ctldir.c | 316 return (SET_ERROR(ENOENT)); in zfsctl_snapshot_rename() 599 return (SET_ERROR(ENOENT)); in zfsctl_create() 664 return (SET_ERROR(ENOSPC)); in zfsctl_snapdir_fid() 716 return (SET_ERROR(ENOSPC)); in zfsctl_fid() 744 return (SET_ERROR(EILSEQ)); in zfsctl_snapshot_name() 748 return (SET_ERROR(ENAMETOOLONG)); in zfsctl_snapshot_name() 791 error = SET_ERROR(ENOENT); in zfsctl_snapshot_path_objset() 829 error = SET_ERROR(ENOENT); in zfsctl_root_lookup() 860 error = SET_ERROR(ENOENT); in zfsctl_snapdir_lookup() 881 return (SET_ERROR(EACCES)); in zfsctl_snapdir_rename() [all …]
|
H A D | zfs_ioctl_os.c | 82 return (SET_ERROR(ESRCH)); in zfs_vfs_ref() 141 error = -SET_ERROR(EFAULT); in zfsdev_ioctl() 147 error = -SET_ERROR(EFAULT); in zfsdev_ioctl() 160 return (SET_ERROR(EINVAL)); in zfs_ioc_userns_attach() 182 return (SET_ERROR(EINVAL)); in zfs_ioc_userns_detach()
|
H A D | vdev_disk.c | 295 return (SET_ERROR(EINVAL)); in vdev_disk_open() 419 return (SET_ERROR(error)); in vdev_disk_open() 919 return (SET_ERROR(EIO)); in vdev_disk_io_rw() 1106 return (SET_ERROR(EIO)); in vdev_classic_physio() 1154 return (SET_ERROR(ENOMEM)); in vdev_classic_physio() 1220 return (SET_ERROR(ENXIO)); in vdev_disk_io_flush() 1224 return (SET_ERROR(ENOMEM)); in vdev_disk_io_flush() 1321 return (SET_ERROR(-error)); in vdev_disk_io_trim() 1379 error = SET_ERROR(ENXIO); in vdev_disk_io_start() 1385 error = SET_ERROR(ENOTSUP); in vdev_disk_io_start() [all …]
|
/freebsd/contrib/ncurses/menu/ |
H A D | mf_common.h | 73 #define SET_ERROR(code) (errno=(code)) macro 77 #define RETURN(code) returnCode( SET_ERROR(code) ) 79 #define RETURN(code) return( SET_ERROR(code) )
|
/freebsd/sys/contrib/openzfs/lib/libspl/include/sys/ |
H A D | trace_spl.h | 19 #undef SET_ERROR 20 #define SET_ERROR(err) \ macro
|
H A D | trace_zfs.h | 19 #undef SET_ERROR 20 #define SET_ERROR(err) \ macro
|