Lines Matching refs:zfs_hdl

221 be_should_promote_clones(zfs_handle_t *zfs_hdl, struct be_destroy_data *bdd)  in be_should_promote_clones()  argument
225 if (zfs_get_type(zfs_hdl) != ZFS_TYPE_SNAPSHOT) in be_should_promote_clones()
238 atpos = strchr(zfs_get_name(zfs_hdl), '@'); in be_should_promote_clones()
249 be_dependent_clone_cb(zfs_handle_t *zfs_hdl, void *data) in be_dependent_clone_cb() argument
263 if (be_should_promote_clones(zfs_hdl, bdd) && in be_dependent_clone_cb()
264 (nvl = zfs_get_clones_nvl(zfs_hdl)) != NULL) { in be_dependent_clone_cb()
318 zfs_close(zfs_hdl); in be_dependent_clone_cb()
327 be_promote_dependent_clones(zfs_handle_t *zfs_hdl, struct be_destroy_data *bdd) in be_promote_dependent_clones() argument
333 snprintf(bdd->target_name, BE_MAXPATHLEN, "%s/", zfs_get_name(zfs_hdl)); in be_promote_dependent_clones()
334 err = zfs_iter_dependents(zfs_hdl, true, be_dependent_clone_cb, bdd); in be_promote_dependent_clones()
367 be_destroy_cb(zfs_handle_t *zfs_hdl, void *data) in be_destroy_cb() argument
376 err = zfs_iter_children(zfs_hdl, be_destroy_cb, data); in be_destroy_cb()
379 return (zfs_destroy(zfs_hdl, false)); in be_destroy_cb()
382 err = zfs_iter_filesystems(zfs_hdl, be_destroy_cb, data); in be_destroy_cb()
394 snprintf(path, sizeof(path), "%s@%s", zfs_get_name(zfs_hdl), in be_destroy_cb()
1006 zfs_handle_t *zfs_hdl; in be_rename() local
1026 if ((zfs_hdl = zfs_open(lbh->lzh, full_old, in be_rename()
1034 err = zfs_rename(zfs_hdl, full_new, flags); in be_rename()
1044 zfs_close(zfs_hdl); in be_rename()