/freebsd-10.1-release/sys/cddl/compat/opensolaris/sys/ |
H A D | kidmap.h | 38 #define kidmap_get_destroy(hdl) do { } while (0) 39 #define kidmap_get_mappings(hdl) (NULL)
|
/freebsd-10.1-release/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_util.c | 61 libzfs_errno(libzfs_handle_t *hdl) argument 63 return (hdl->libzfs_error); 67 libzfs_error_action(libzfs_handle_t *hdl) argument 69 return (hdl->libzfs_action); 73 libzfs_error_description(libzfs_handle_t *hdl) argument 75 if (hdl->libzfs_desc[0] != '\0') 76 return (hdl->libzfs_desc); 78 switch (hdl->libzfs_error) { 241 assert(hdl->libzfs_error == 0); 248 zfs_error_aux(libzfs_handle_t *hdl, cons argument 262 zfs_verror(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) argument 288 zfs_error(libzfs_handle_t *hdl, int error, const char *msg) argument 295 zfs_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument 309 zfs_common_error(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) argument 339 zfs_standard_error(libzfs_handle_t *hdl, int error, const char *msg) argument 346 zfs_standard_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument 412 zpool_standard_error(libzfs_handle_t *hdl, int error, const char *msg) argument 419 zpool_standard_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument 499 no_memory(libzfs_handle_t *hdl) argument 508 zfs_alloc(libzfs_handle_t *hdl, size_t size) argument 523 zfs_asprintf(libzfs_handle_t *hdl, const char *fmt, ...) argument 545 zfs_realloc(libzfs_handle_t *hdl, void *ptr, size_t oldsize, size_t newsize) argument 562 zfs_strdup(libzfs_handle_t *hdl, const char *str) argument 617 libzfs_print_on_error(libzfs_handle_t *hdl, boolean_t printerr) argument 640 libzfs_handle_t *hdl; local 681 libzfs_fini(libzfs_handle_t *hdl) argument 724 zfs_path_to_zhandle(libzfs_handle_t *hdl, char *path, zfs_type_t argtype) argument 781 zcmd_alloc_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, size_t len) argument 799 zcmd_expand_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument 822 zcmd_write_nvlist_com(libzfs_handle_t *hdl, uint64_t *outnv, uint64_t *outlen, nvlist_t *nvl) argument 842 zcmd_write_conf_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument 849 zcmd_write_src_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument 859 zcmd_read_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t **nvlp) argument 869 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) argument 1091 str2shift(libzfs_handle_t *hdl, const char *buf) argument 1127 zfs_nicestrtonum(libzfs_handle_t *hdl, const char *value, uint64_t *num) argument 1207 zprop_parse_value(libzfs_handle_t *hdl, nvpair_t *elem, int prop, zfs_type_t type, nvlist_t *ret, char **svalp, uint64_t *ivalp, const char *errbuf) argument 1327 addlist(libzfs_handle_t *hdl, char *propname, zprop_list_t **listp, zfs_type_t type) argument 1382 zprop_get_list(libzfs_handle_t *hdl, char *props, zprop_list_t **listp, zfs_type_t type) argument 1477 libzfs_handle_t *hdl; member in struct:expand_data 1501 zprop_expand_list(libzfs_handle_t *hdl, zprop_list_t **plp, zfs_type_t type) argument [all...] |
H A D | libzfs_fru.c | 106 libzfs_handle_t *hdl = arg; local 117 if (hdl->libzfs_chassis_id[0] == '\0' && 121 (void) strlcpy(hdl->libzfs_chassis_id, devpath, 122 sizeof (hdl->libzfs_chassis_id)); 137 if (libzfs_fru_lookup(hdl, devpath) != NULL) { 180 frup->zf_chain = hdl->libzfs_fru_hash[idx]; 181 hdl->libzfs_fru_hash[idx] = frup; 182 frup->zf_next = hdl->libzfs_fru_list; 183 hdl->libzfs_fru_list = frup; 257 libzfs_fru_refresh(libzfs_handle_t *hdl) argument 307 libzfs_fru_lookup(libzfs_handle_t *hdl, const char *devpath) argument 333 libzfs_fru_devpath(libzfs_handle_t *hdl, const char *fru) argument 379 libzfs_fru_compare(libzfs_handle_t *hdl, const char *a, const char *b) argument 397 libzfs_fru_notself(libzfs_handle_t *hdl, const char *fru) argument 427 libzfs_fru_clear(libzfs_handle_t *hdl, boolean_t final) argument [all...] |
H A D | libzfs_config.c | 77 namespace_clear(libzfs_handle_t *hdl) argument 79 if (hdl->libzfs_ns_avl) { 83 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, 90 uu_avl_destroy(hdl->libzfs_ns_avl); 91 hdl->libzfs_ns_avl = NULL; 94 if (hdl->libzfs_ns_avlpool) { 95 uu_avl_pool_destroy(hdl->libzfs_ns_avlpool); 96 hdl->libzfs_ns_avlpool = NULL; 104 namespace_reload(libzfs_handle_t *hdl) argument 112 if (hdl 267 libzfs_handle_t *hdl = zhp->zpool_hdl; local 385 zpool_iter(libzfs_handle_t *hdl, zpool_iter_f func, void *data) argument 430 zfs_iter_root(libzfs_handle_t *hdl, zfs_iter_f func, void *data) argument [all...] |
H A D | libzfs_dataset.c | 135 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, argument 143 if (hdl != NULL) { 146 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 151 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 156 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 161 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 166 zfs_error_aux(hdl, 172 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 177 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 182 zfs_error_aux(hdl, dgettex 235 libzfs_handle_t *hdl = zhp->zfs_hdl; local 264 libzfs_handle_t *hdl = zhp->zfs_hdl; local 278 libzfs_handle_t *hdl = zhp->zfs_hdl; local 312 zpool_free_handles(libzfs_handle_t *hdl) argument 330 libzfs_handle_t *hdl = zhp->zfs_hdl; local 352 libzfs_handle_t *hdl = zhp->zfs_hdl; local 475 make_dataset_handle(libzfs_handle_t *hdl, const char *path) argument 504 make_dataset_handle_zc(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument 653 zfs_open(libzfs_handle_t *hdl, const char *path, int types) argument 739 libzfs_mnttab_init(libzfs_handle_t *hdl) argument 747 libzfs_mnttab_update(libzfs_handle_t *hdl) argument 767 libzfs_mnttab_fini(libzfs_handle_t *hdl) argument 783 libzfs_mnttab_cache(libzfs_handle_t *hdl, boolean_t enable) argument 789 libzfs_mnttab_find(libzfs_handle_t *hdl, const char *fsname, struct mnttab *entry) argument 822 libzfs_mnttab_add(libzfs_handle_t *hdl, const char *special, const char *mountp, const char *mntopts) argument 838 libzfs_mnttab_remove(libzfs_handle_t *hdl, const char *fsname) argument 892 zfs_valid_proplist(libzfs_handle_t *hdl, zfs_type_t type, nvlist_t *nvl, uint64_t zoned, zfs_handle_t *zhp, const char *errbuf) argument 1419 zfs_setprop_error(libzfs_handle_t *hdl, zfs_prop_t prop, int err, char *errbuf) argument 1512 libzfs_handle_t *hdl = zhp->zfs_hdl; local 1641 libzfs_handle_t *hdl = zhp->zfs_hdl; local 1866 libzfs_handle_t *hdl = zhp->zfs_hdl; local 2878 check_parents(libzfs_handle_t *hdl, const char *path, uint64_t *zoned, boolean_t accept_ancestor, int *prefixlen) argument 2959 zfs_dataset_exists(libzfs_handle_t *hdl, const char *path, zfs_type_t types) argument 2985 create_parents(libzfs_handle_t *hdl, char *target, int prefixlen) argument 3058 zfs_create_ancestors(libzfs_handle_t *hdl, const char *path) argument 3081 zfs_create(libzfs_handle_t *hdl, const char *path, zfs_type_t type, nvlist_t *props) argument 3317 zfs_destroy_snaps_nvl(libzfs_handle_t *hdl, nvlist_t *snaps, boolean_t defer) argument 3365 libzfs_handle_t *hdl = zhp->zfs_hdl; local 3438 libzfs_handle_t *hdl = zhp->zfs_hdl; local 3513 zfs_snapshot_nvl(libzfs_handle_t *hdl, nvlist_t *snaps, nvlist_t *props) argument 3578 zfs_snapshot(libzfs_handle_t *hdl, const char *path, boolean_t recursive, nvlist_t *props) argument 3764 libzfs_handle_t *hdl = zhp->zfs_hdl; local 3995 libzfs_handle_t *hdl = zhp->zfs_hdl; local 4089 zfs_deleg_share_nfs(libzfs_handle_t *hdl, char *dataset, char *path, char *resource, void *export, void *sharetab, int sharemax, zfs_share_op_t operation) argument 4141 zfs_smb_acl_mgmt(libzfs_handle_t *hdl, char *dataset, char *path, zfs_smb_acl_op_t cmd, char *resource1, char *resource2) argument 4192 zfs_smb_acl_add(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument 4200 zfs_smb_acl_remove(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument 4208 zfs_smb_acl_purge(libzfs_handle_t *hdl, char *dataset, char *path) argument 4215 zfs_smb_acl_rename(libzfs_handle_t *hdl, char *dataset, char *path, char *oldname, char *newname) argument 4229 libzfs_handle_t *hdl = zhp->zfs_hdl; local 4328 libzfs_handle_t *hdl = zhp->zfs_hdl; local 4427 libzfs_handle_t *hdl = zhp->zfs_hdl; local 4504 libzfs_handle_t *hdl = zhp->zfs_hdl; local 4571 libzfs_handle_t *hdl = zhp->zfs_hdl; local 4630 libzfs_handle_t *hdl = zhp->zfs_hdl; local 4705 libzfs_handle_t *hdl = zhp->zfs_hdl; local [all...] |
H A D | libzfs_pool.c | 71 libzfs_handle_t *hdl = zhp->zpool_hdl; local 75 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0) 78 while (ioctl(hdl->libzfs_fd, ZFS_IOC_POOL_GET_PROPS, &zc) != 0) { 80 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) { 90 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) { 438 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, argument 452 (void) no_memory(hdl); 468 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 470 (void) zfs_error(hdl, EZFS_BADPROP, errbuf); 475 zfs_error_aux(hdl, dgettex 745 libzfs_handle_t *hdl = zhp->zpool_hdl; local 907 zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool) argument 995 zpool_open_canfail(libzfs_handle_t *hdl, const char *pool) argument 1037 zpool_open_silent(libzfs_handle_t *hdl, const char *pool, zpool_handle_t **ret) argument 1068 zpool_open(libzfs_handle_t *hdl, const char *pool) argument 1125 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, nvlist_t *props, nvlist_t *fsprops) argument 1246 libzfs_handle_t *hdl = zhp->zpool_hdl; local 1290 libzfs_handle_t *hdl = zhp->zpool_hdl; local 1456 zpool_rewind_exclaim(libzfs_handle_t *hdl, const char *name, boolean_t dryrun, nvlist_t *config) argument 1507 zpool_explain_recover(libzfs_handle_t *hdl, const char *name, int reason, nvlist_t *config) argument 1592 zpool_import(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, char *altroot) argument 1624 print_vdev_tree(libzfs_handle_t *hdl, const char *name, nvlist_t *nv, int indent) argument 1681 zpool_import_props(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, nvlist_t *props, int flags) argument 1872 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2372 zpool_relabel_disk(libzfs_handle_t *hdl, const char *name) argument 2420 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2492 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2540 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2575 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2637 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2815 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2914 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3124 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3170 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3243 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3266 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3287 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3395 zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv, boolean_t verbose) argument 3634 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3657 zpool_log_history(libzfs_handle_t *hdl, const char *message) argument 3686 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3950 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) argument 4062 supported_dump_vdev_type(libzfs_handle_t *hdl, nvlist_t *config, char *errbuf) argument 4103 libzfs_handle_t *hdl; local [all...] |
H A D | libzfs_mount.c | 124 is_shared(libzfs_handle_t *hdl, const char *mountpoint, zfs_share_proto_t proto) argument 129 if (hdl->libzfs_sharetab == NULL) 132 (void) fseek(hdl->libzfs_sharetab, 0, SEEK_SET); 134 while (fgets(buf, sizeof (buf), hdl->libzfs_sharetab) != NULL) { 273 libzfs_handle_t *hdl = zhp->zfs_hdl; local 292 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 294 return (zfs_error_fmt(hdl, EZFS_MOUNTFAILED, 310 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 312 return (zfs_error_fmt(hdl, EZFS_MOUNTFAILED, 326 zfs_error_aux(hdl, dgettex 361 unmount_one(libzfs_handle_t *hdl, const char *mountpoint, int flags) argument 379 libzfs_handle_t *hdl = zhp->zfs_hdl; local 732 libzfs_handle_t *hdl = zhp->zfs_hdl; local 856 unshare_one(libzfs_handle_t *hdl, const char *name, const char *mountpoint, zfs_share_proto_t proto) argument 921 libzfs_handle_t *hdl = zhp->zfs_hdl; local 1123 libzfs_handle_t *hdl = zhp->zpool_hdl; local 1206 libzfs_handle_t *hdl = zhp->zpool_hdl; local [all...] |
H A D | libzfs_import.c | 213 add_config(libzfs_handle_t *hdl, pool_list_t *pl, const char *path, argument 231 if ((ne = zfs_alloc(hdl, sizeof (name_entry_t))) == NULL) 234 if ((ne->ne_name = zfs_strdup(hdl, path)) == NULL) { 274 if ((pe = zfs_alloc(hdl, sizeof (pool_entry_t))) == NULL) { 293 if ((ve = zfs_alloc(hdl, sizeof (vdev_entry_t))) == NULL) { 313 if ((ce = zfs_alloc(hdl, sizeof (config_entry_t))) == NULL) { 331 if ((ne = zfs_alloc(hdl, sizeof (name_entry_t))) == NULL) 334 if ((ne->ne_name = zfs_strdup(hdl, path)) == NULL) { 350 pool_active(libzfs_handle_t *hdl, const char *name, uint64_t guid, argument 356 if (zpool_open_silent(hdl, nam 374 refresh_config(libzfs_handle_t *hdl, nvlist_t *config) argument 434 get_configs(libzfs_handle_t *hdl, pool_list_t *pl, boolean_t active_ok) argument 1137 zpool_find_import_impl(libzfs_handle_t *hdl, importargs_t *iarg) argument 1345 zpool_find_import(libzfs_handle_t *hdl, int argc, char **argv) argument 1361 zpool_find_import_cached(libzfs_handle_t *hdl, const char *cachefile, char *poolname, uint64_t guid) argument 1495 zpool_search_import(libzfs_handle_t *hdl, importargs_t *import) argument 1570 zpool_in_use(libzfs_handle_t *hdl, int fd, pool_state_t *state, char **namestr, boolean_t *inuse) argument [all...] |
H A D | libzfs_sendrecv.c | 132 ddt_hash_append(libzfs_handle_t *hdl, dedup_table_t *ddt, dedup_entry_t **ddepp, argument 139 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 170 ddt_update(libzfs_handle_t *hdl, dedup_table_t *ddt, zio_cksum_t *cs, argument 186 ddt_hash_append(hdl, ddt, ddepp, cs, prop, dr); 774 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, argument 781 zhp = zfs_open(hdl, fsname, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME); 837 libzfs_handle_t *hdl = zhp->zfs_hdl; local 855 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 857 return (zfs_error(hdl, EZFS_CROSSTARGET, errbuf)); 860 if (zfs_dataset_exists(hdl, z 901 libzfs_handle_t *hdl = zhp->zfs_hdl; local 997 libzfs_handle_t *hdl = zhp->zfs_hdl; local 1650 libzfs_handle_t *hdl = zhp->zfs_hdl; local 1707 recv_read(libzfs_handle_t *hdl, int fd, void *buf, int ilen, boolean_t byteswap, zio_cksum_t *zc) argument 1737 recv_read_nvlist(libzfs_handle_t *hdl, int fd, int len, nvlist_t **nvp, boolean_t byteswap, zio_cksum_t *zc) argument 1764 recv_rename(libzfs_handle_t *hdl, const char *name, const char *tryname, int baselen, char *newname, recvflags_t *flags) argument 1837 recv_destroy(libzfs_handle_t *hdl, const char *name, int baselen, char *newname, recvflags_t *flags) argument 1927 guid_to_name(libzfs_handle_t *hdl, const char *parent, uint64_t guid, char *name) argument 1977 created_before(libzfs_handle_t *hdl, avl_tree_t *avl, uint64_t guid1, uint64_t guid2) argument 2025 recv_incremental_replication(libzfs_handle_t *hdl, const char *tofs, recvflags_t *flags, nvlist_t *stream_nv, avl_tree_t *stream_avl, nvlist_t *renamed) argument 2334 zfs_receive_package(libzfs_handle_t *hdl, int fd, const char *destname, recvflags_t *flags, dmu_replay_record_t *drr, zio_cksum_t *zc, char **top_zfs, int cleanup_fd, uint64_t *action_handlep) argument 2545 recv_skip(libzfs_handle_t *hdl, int fd, boolean_t byteswap) argument 2633 zfs_receive_one(libzfs_handle_t *hdl, int infd, const char *tosnap, recvflags_t *flags, dmu_replay_record_t *drr, dmu_replay_record_t *drr_noswap, const char *sendfs, nvlist_t *stream_nv, avl_tree_t *stream_avl, char **top_zfs, int cleanup_fd, uint64_t *action_handlep) argument 3182 zfs_receive_impl(libzfs_handle_t *hdl, const char *tosnap, recvflags_t *flags, int infd, const char *sendfs, nvlist_t *stream_nv, avl_tree_t *stream_avl, char **top_zfs, int cleanup_fd, uint64_t *action_handlep) argument 3293 zfs_receive(libzfs_handle_t *hdl, const char *tosnap, recvflags_t *flags, int infd, avl_tree_t *stream_avl) argument [all...] |
H A D | libzfs_diff.c | 513 libzfs_handle_t *hdl = di->zhp->zfs_hdl; local 521 if (ioctl(hdl->libzfs_fd, ZFS_IOC_TMP_SNAPSHOT, &zc) != 0) { 528 return (zfs_error(hdl, EZFS_DIFF, di->errbuf)); 533 return (zfs_standard_error(hdl, err, di->errbuf)); 537 di->tmpsnap = zfs_strdup(hdl, zc.zc_value); 538 di->tosnap = zfs_asprintf(hdl, "%s@%s", di->ds, di->tmpsnap); 559 libzfs_handle_t *hdl = di->zhp->zfs_hdl; local 579 if (!zfs_validate_name(hdl, fromsnap, ZFS_TYPE_SNAPSHOT, 581 return (zfs_error(hdl, EZFS_INVALIDNAME, 589 di->fromsnap = zfs_strdup(hdl, fromsna [all...] |
H A D | libzfs_impl.h | 157 int zprop_expand_list(libzfs_handle_t *hdl, zprop_list_t **plp, 201 int zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type,
|
H A D | libzfs_changelist.c | 164 libzfs_handle_t *hdl; local 188 hdl = cn->cn_handle->zfs_hdl; 189 assert(hdl != NULL); 190 zfs_uninit_libshare(hdl);
|
H A D | libzfs.h | 566 extern int zfs_snapshot_nvl(libzfs_handle_t *hdl, nvlist_t *snaps,
|
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | sa.c | 130 static int sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype); 137 static int sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr, 211 sa_handle_t *hdl = buf; local 213 hdl->sa_bonus_tab = NULL; 214 hdl->sa_spill_tab = NULL; 215 hdl->sa_os = NULL; 216 hdl->sa_userp = NULL; 217 hdl->sa_bonus = NULL; 218 hdl->sa_spill = NULL; 219 mutex_init(&hdl 227 sa_handle_t *hdl = buf; local 306 sa_get_spill(sa_handle_t *hdl) argument 327 sa_attr_op(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count, sa_data_op_t data_op, dmu_tx_t *tx) argument 496 sa_resize_spill(sa_handle_t *hdl, uint32_t size, dmu_tx_t *tx) argument 651 sa_build_layouts(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument 1226 sa_handle_t *hdl = userp; local 1233 sa_byteswap(sa_handle_t *hdl, sa_buf_type_t buftype) argument 1274 sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype) argument 1347 sa_handle_destroy(sa_handle_t *hdl) argument 1438 sa_lookup_impl(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count) argument 1446 sa_lookup(sa_handle_t *hdl, sa_attr_type_t attr, void *buf, uint32_t buflen) argument 1465 sa_lookup_uio(sa_handle_t *hdl, sa_attr_type_t attr, uio_t *uio) argument 1569 sa_attr_register_sync(sa_handle_t *hdl, dmu_tx_t *tx) argument 1611 sa_replace_all_by_template_locked(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument 1622 sa_replace_all_by_template(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument 1642 sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr, sa_data_op_t action, sa_data_locator_t *locator, void *datastart, uint16_t buflen, dmu_tx_t *tx) argument 1775 sa_bulk_update_impl(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count, dmu_tx_t *tx) argument 1802 sa_update(sa_handle_t *hdl, sa_attr_type_t type, void *buf, uint32_t buflen, dmu_tx_t *tx) argument 1820 sa_update_from_cb(sa_handle_t *hdl, sa_attr_type_t attr, uint32_t buflen, sa_data_locator_t *locator, void *userdata, dmu_tx_t *tx) argument 1842 sa_size(sa_handle_t *hdl, sa_attr_type_t attr, int *size) argument 1864 sa_bulk_lookup_locked(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count) argument 1872 sa_bulk_lookup(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count) argument 1884 sa_bulk_update(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count, dmu_tx_t *tx) argument 1896 sa_remove(sa_handle_t *hdl, sa_attr_type_t attr, dmu_tx_t *tx) argument 1908 sa_object_info(sa_handle_t *hdl, dmu_object_info_t *doi) argument 1914 sa_object_size(sa_handle_t *hdl, uint32_t *blksize, u_longlong_t *nblocks) argument 1929 sa_set_userp(sa_handle_t *hdl, void *ptr) argument 1935 sa_get_db(sa_handle_t *hdl) argument 1941 sa_get_userdata(sa_handle_t *hdl) argument 1963 sa_handle_object(sa_handle_t *hdl) argument 1996 sa_handle_lock(sa_handle_t *hdl) argument 2003 sa_handle_unlock(sa_handle_t *hdl) argument [all...] |
H A D | zfs_sa.c | 196 zfs_sa_upgrade(sa_handle_t *hdl, dmu_tx_t *tx) argument 198 dmu_buf_t *db = sa_get_db(hdl); 199 znode_t *zp = sa_get_userdata(hdl); 249 if (sa_bulk_lookup_locked(hdl, bulk, count) != 0) 307 VERIFY(sa_replace_all_by_template_locked(hdl, sa_attrs,
|
H A D | zfs_znode.c | 615 dmu_object_type_t obj_type, sa_handle_t *hdl) 656 zfs_znode_sa_init(zfsvfs, zp, db, obj_type, hdl); 675 if (hdl == NULL) 1124 sa_handle_t *hdl; local 1155 hdl = dmu_buf_get_user(db); 1156 if (hdl != NULL) { 1157 zp = sa_get_userdata(hdl); 1972 zfs_release_sa_handle(sa_handle_t *hdl, dmu_buf_t *db, void *tag) argument 1974 sa_handle_destroy(hdl); 1983 zfs_obj_to_pobj(objset_t *osp, sa_handle_t *hdl, sa_attr_type_ argument 614 zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, dmu_object_type_t obj_type, sa_handle_t *hdl) argument 2039 zfs_obj_to_stats_impl(sa_handle_t *hdl, sa_attr_type_t *sa_table, zfs_stat_t *sb) argument 2058 zfs_obj_to_path_impl(objset_t *osp, uint64_t obj, sa_handle_t *hdl, sa_attr_type_t *sa_table, char *buf, int len) argument 2133 sa_handle_t *hdl; local 2157 sa_handle_t *hdl; local [all...] |
H A D | dmu_tx.c | 1605 dmu_tx_hold_sa(dmu_tx_t *tx, sa_handle_t *hdl, boolean_t may_grow) argument 1610 ASSERT(hdl != NULL); 1612 object = sa_handle_object(hdl); 1632 if (sa->sa_force_spill || may_grow || hdl->sa_spill) { 1636 dmu_buf_impl_t *db = (dmu_buf_impl_t *)hdl->sa_bonus;
|
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | sa_impl.h | 222 #define SA_GET_DB(hdl, type) \ 223 (dmu_buf_impl_t *)((type == SA_BONUS) ? hdl->sa_bonus : hdl->sa_spill) 225 #define SA_GET_HDR(hdl, type) \ 226 ((sa_hdr_phys_t *)((dmu_buf_impl_t *)(SA_GET_DB(hdl, \ 229 #define SA_IDX_TAB_GET(hdl, type) \ 230 (type == SA_BONUS ? hdl->sa_bonus_tab : hdl->sa_spill_tab) 257 #define SA_ATTR_INFO(sa, idx, hdr, attr, bulk, type, hdl) \
|
H A D | dmu.h | 566 void dmu_tx_hold_sa(dmu_tx_t *tx, struct sa_handle *hdl, boolean_t may_grow);
|
/freebsd-10.1-release/sys/dev/isp/ |
H A D | ispvar.h | 317 #define ISP_H2HT(hdl) ((hdl & ISP_HANDLE_USAGE_MASK) >> ISP_HANDLE_USAGE_SHIFT) 323 #define ISP_H2SEQ(hdl) ((hdl & ISP_HANDLE_SEQ_MASK) >> ISP_HANDLE_SEQ_SHIFT) 324 #define ISP_VALID_INI_HANDLE(c, hdl) \ 325 (ISP_H2HT(hdl) == ISP_HANDLE_INITIATOR && (hdl & ISP_HANDLE_CMD_MASK) < (c)->isp_maxcmds && \ 326 ISP_H2SEQ(hdl) == ISP_H2SEQ((c)->isp_xflist[hdl & ISP_HANDLE_CMD_MASK].handle)) 328 #define ISP_VALID_TGT_HANDLE(c, hdl) \ [all...] |
H A D | isp_target.c | 632 uint32_t code, hdl; local 657 hdl = va_arg(ap, uint32_t); 695 cto->ct_syshandle = hdl; 703 hdl = va_arg(ap, uint32_t); 722 if (hdl == 0) { 738 cto->ct_syshandle = hdl; 746 hdl = va_arg(ap, uint32_t); 763 if (hdl == 0) { 767 cto->ct_syshandle = hdl;
|
H A D | isp_freebsd.c | 6344 isp_common_dmateardown(ispsoftc_t *isp, struct ccb_scsiio *csio, uint32_t hdl) argument
|
/freebsd-10.1-release/cddl/contrib/opensolaris/cmd/zdb/ |
H A D | zdb.c | 1562 sa_handle_t *hdl; local 1591 if (sa_handle_get(os, object, NULL, SA_HDL_PRIVATE, &hdl)) { 1618 if (sa_bulk_lookup(hdl, bulk, idx)) { 1619 (void) sa_handle_destroy(hdl); 1630 (void) sa_handle_destroy(hdl); 1651 if (sa_lookup(hdl, sa_attr_table[ZPL_XATTR], &xattr, 1654 if (sa_lookup(hdl, sa_attr_table[ZPL_RDEV], &rdev, 1657 sa_handle_destroy(hdl);
|