Lines Matching defs:hdl

83 zfs_cache_open(libzfs_handle_t *hdl)
87 ASSERT(hdl->libzfs_handle_cache == NULL);
89 zhc = zfs_alloc(hdl, sizeof (zfs_handle_cache_t));
92 zhc->zhc_hdl = hdl;
93 hdl->libzfs_handle_cache = zhc;
99 zfs_cache_close(libzfs_handle_t *hdl)
101 zfs_handle_cache_t *zhc = hdl->libzfs_handle_cache;
109 hdl->libzfs_handle_cache = NULL;
131 libzfs_handle_t *hdl = zhc->zhc_hdl;
145 zhp = zfs_open_quiet(hdl, path, type);
147 zhp = zfs_open(hdl, path, type);
160 rewind(hdl->libzfs_mnttab);
161 while ((ret = getextmntent(hdl->libzfs_mnttab, &entry, 0)) == 0) {
185 zhp = zfs_open_quiet(hdl, entry.mnt_special, type);
187 zhp = zfs_open(hdl, entry.mnt_special, type);
313 zfs_cache_get(libzfs_handle_t *hdl, const char *path, zfs_type_t type)
315 zfs_handle_cache_t *zhc = hdl->libzfs_handle_cache;
319 zhp = zfs_path_to_zhandle(hdl, path, type);
328 zfs_cache_get_quiet(libzfs_handle_t *hdl, const char *path,
331 zfs_handle_cache_t *zhc = hdl->libzfs_handle_cache;
335 zhp = zfs_path_to_zhandle_quiet(hdl, path, type);
401 zfs_cache_do_stats_ioctl(libzfs_handle_t *hdl, int arg, zfs_cmd_t *zc)
405 rc = ioctl(hdl->libzfs_fd, arg, zc);
411 if (zcmd_expand_dst_nvlist(hdl, zc) != 0) {
424 rc = zfs_standard_error_fmt(hdl, NULL,
497 zfs_cache_iter_filesystems(libzfs_handle_t *hdl, zfs_handle_t *zhp,
500 zfs_handle_cache_t *zhc = hdl->libzfs_handle_cache;
511 zfs_cache_iter_shares(libzfs_handle_t *hdl, zfs_handle_t *zhp,
514 zfs_handle_cache_t *zhc = hdl->libzfs_handle_cache;
525 zfs_cache_iter_children(libzfs_handle_t *hdl, zfs_handle_t *zhp,
530 if ((ret = zfs_cache_iter_filesystems(hdl, zhp, func, data)) != 0)
537 return (zfs_cache_iter_shares(hdl, zhp, func, data));
581 zfs_cache_iter_root(libzfs_handle_t *hdl, zfs_iter_f func, void *data)
583 zfs_handle_cache_t *zhc = hdl->libzfs_handle_cache;
586 return (zfs_iter_root(hdl, func, data));
592 if (namespace_reload(hdl) != 0)
595 for (cn = uu_avl_first(hdl->libzfs_ns_avl); cn != NULL;
596 cn = uu_avl_next(hdl->libzfs_ns_avl, cn)) {
598 if ((zhp = zfs_cache_get(hdl, cn->cn_name,