Searched defs:zhp (Results 1 - 25 of 51) sorted by relevance

123

/illumos-gate/usr/src/lib/libbe/common/
H A Dbe_rename.c70 zfs_handle_t *zhp = NULL; local
169 if ((zhp = zfs_open(g_zfs, bt.obe_root_ds, ZFS_TYPE_FILESYSTEM))
179 if (zfs_rename(zhp, bt.nbe_root_ds, B_FALSE, B_FALSE) != 0) {
188 ZFS_CLOSE(zhp);
189 if ((zhp = zfs_open(g_zfs, bt.nbe_root_ds, ZFS_TYPE_FILESYSTEM))
199 if (zfs_is_mounted(zhp, &mp) && mp == NULL) {
226 ZFS_CLOSE(zhp);
H A Dbe_snapshot.c254 zfs_handle_t *zhp = NULL; local
336 if ((zhp = zfs_open(g_zfs, bt.obe_root_ds, ZFS_TYPE_DATASET)) == NULL) {
348 if ((ret = be_rollback_check_callback(zhp, bt.obe_snap_name)) != 0) {
349 zhp = NULL;
354 if ((zhp = zfs_open(g_zfs, bt.obe_root_ds, ZFS_TYPE_DATASET)) == NULL) {
366 if ((ret = be_rollback_callback(zhp, bt.obe_snap_name)) != 0) {
367 zhp = NULL;
373 zhp = NULL;
404 zfs_handle_t *zhp = NULL; local
483 if ((zhp
630 zfs_handle_t *zhp; local
728 be_rollback_check_callback(zfs_handle_t *zhp, void *data) argument
770 be_rollback_callback(zfs_handle_t *zhp, void *data) argument
[all...]
H A Dbe_zones.c115 zfs_handle_t *zhp; local
143 if ((zhp = zfs_open(g_zfs, zone_container_ds, ZFS_TYPE_FILESYSTEM))
156 if ((ret = zfs_iter_filesystems(zhp, be_find_active_zone_root_callback,
176 ZFS_CLOSE(zhp);
202 zfs_handle_t *zhp = NULL; local
212 if ((zhp = zfs_open(g_zfs, zone_container_ds, ZFS_TYPE_FILESYSTEM))
227 if ((zret = zfs_iter_filesystems(zhp,
249 ZFS_CLOSE(zhp);
347 zfs_handle_t *zhp = NULL; local
354 if ((zhp
409 zfs_handle_t *zhp = NULL; local
510 be_find_active_zone_root_callback(zfs_handle_t *zhp, void *data) argument
572 be_find_mounted_zone_root_callback(zfs_handle_t *zhp, void *data) argument
601 be_zone_get_active(zfs_handle_t *zhp) argument
[all...]
H A Dbe_list.c63 static int be_add_children_callback(zfs_handle_t *zhp, void *data);
363 zfs_handle_t *zhp = NULL; local
377 if ((zhp = zfs_open(g_zfs, zone_be_container_ds,
391 ZFS_CLOSE(zhp);
397 ret = zfs_iter_filesystems(zhp, be_add_children_callback, &cb);
398 ZFS_CLOSE(zhp);
436 zfs_handle_t *zhp = NULL; local
477 if ((zhp = zfs_open(g_zfs, open_ds, ZFS_TYPE_FILESYSTEM)) == NULL) {
496 ZFS_CLOSE(zhp);
503 if ((ret = be_get_node_data(zhp, c
538 be_add_children_callback(zfs_handle_t *zhp, void *data) argument
998 be_get_node_data( zfs_handle_t *zhp, be_node_list_t *be_node, char *be_name, const char *rpool, char *current_be, char *be_ds) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dzfs.c144 find_pool(zpool_handle_t *zhp, void *data) argument
148 if (zpool_get_prop_int(zhp, ZPOOL_PROP_GUID, NULL) == cbp->cb_guid) {
149 cbp->cb_pool = zhp;
153 zpool_close(zhp);
/illumos-gate/usr/src/cmd/fm/schemes/zfs/
H A Dscheme.c40 find_pool(zpool_handle_t *zhp, void *data) argument
44 if (zpool_get_prop_int(zhp, ZPOOL_PROP_GUID, NULL) == cbp->cb_guid) {
45 cbp->cb_pool = zhp;
49 zpool_close(zhp);
132 find_vdev(zpool_handle_t *zhp, uint64_t guid) argument
136 config = zpool_get_config(zhp, NULL);
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_chkpnt.c61 * zhp (input) - ZFS handle pointer
70 ndmp_has_backup(zfs_handle_t *zhp, void *data) argument
75 name = zfs_get_name(zhp);
78 zfs_close(zhp);
83 zfs_close(zhp);
104 zfs_handle_t *zhp; local
109 if ((zhp = zfs_open(zlibh, volname, ZFS_TYPE_DATASET)) == 0) {
119 (void) zfs_iter_snapshots(zhp, B_FALSE, ndmp_has_backup, &snp);
120 zfs_close(zhp);
192 zfs_handle_t *zhp; local
221 zfs_handle_t *zhp; local
292 zfs_handle_t *zhp; local
[all...]
H A Dndmpd_dtime.c838 zfs_handle_t *zhp; local
857 ((zhp = zfs_open(zlibh, vol, ZFS_TYPE_DATASET)) != NULL)) {
858 if ((userprops = zfs_get_user_props(zhp)) == NULL) {
861 zfs_close(zhp);
877 zfs_close(zhp);
882 zfs_close(zhp);
887 zfs_close(zhp);
961 zfs_handle_t *zhp; local
972 ((zhp = zfs_open(zlibh, vol, ZFS_TYPE_DATASET)) != NULL)) {
975 rv = zfs_prop_set(zhp, zfs_dumpdate_prop
998 zfs_handle_t *zhp; local
[all...]
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dhomedir.c106 zfs_handle_t *zhp; local
113 ((zhp = zfs_open(g_zfs, nm, ZFS_TYPE_FILESYSTEM)) ==
122 if (zfs_mount(zhp, NULL, 0) != 0) {
125 (void) zfs_destroy(zhp, B_FALSE);
126 zfs_close(zhp);
132 zfs_close(zhp);
239 zfs_handle_t *zhp; local
241 if ((zhp = zfs_open(g_zfs, nm, ZFS_TYPE_FILESYSTEM))
243 if ((zfs_unmount(zhp, NULL, 0) == 0) &&
244 (zfs_destroy(zhp, B_FALS
[all...]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_fru.c360 zpool_fru_set(zpool_handle_t *zhp, uint64_t vdev_guid, const char *fru) argument
364 (void) strncpy(zc.zc_name, zhp->zpool_name, sizeof (zc.zc_name));
368 if (zfs_ioctl(zhp->zpool_hdl, ZFS_IOC_VDEV_SETFRU, &zc) != 0)
369 return (zpool_standard_error_fmt(zhp->zpool_hdl, errno,
H A Dlibzfs_status.c362 zpool_get_status(zpool_handle_t *zhp, char **msgid) argument
364 zpool_status_t ret = check_status(zhp->zpool_config, B_FALSE);
H A Dlibzfs_config.c220 zpool_get_config(zpool_handle_t *zhp, nvlist_t **oldconfig) argument
223 *oldconfig = zhp->zpool_old_config;
224 return (zhp->zpool_config);
232 zpool_get_features(zpool_handle_t *zhp) argument
236 config = zpool_get_config(zhp, NULL);
243 error = zpool_refresh_stats(zhp, &missing);
248 config = zpool_get_config(zhp, NULL);
265 zpool_refresh_stats(zpool_handle_t *zhp, boolean_t *missing) argument
270 libzfs_handle_t *hdl = zhp->zpool_hdl;
273 (void) strcpy(zc.zc_name, zhp
404 zpool_handle_t *zhp; local
449 zfs_handle_t *zhp; local
[all...]
H A Dlibzfs_changelist.c395 change_one(zfs_handle_t *zhp, void *data) argument
414 if (!(ZFS_IS_VOLUME(zhp) && clp->cl_realprop == ZFS_PROP_NAME) &&
415 zfs_prop_get(zhp, clp->cl_prop, property,
418 zfs_close(zhp);
428 zfs_prop_get(zhp, clp->cl_shareprop, property,
431 zfs_close(zhp);
441 if ((cn = zfs_alloc(zfs_get_handle(zhp),
443 zfs_close(zhp);
447 cn->cn_handle = zhp;
449 zfs_is_mounted(zhp, NUL
533 changelist_gather(zfs_handle_t *zhp, zfs_prop_t prop, int gather_flags, int mnt_flags) argument
[all...]
H A Dlibzfs_iter.c40 zfs_iter_clones(zfs_handle_t *zhp, zfs_iter_f func, void *data) argument
42 nvlist_t *nvl = zfs_get_clones_nvl(zhp);
50 zfs_handle_t *clone = zfs_open(zhp->zfs_hdl, nvpair_name(pair),
62 zfs_do_list_ioctl(zfs_handle_t *zhp, int arg, zfs_cmd_t *zc) argument
69 (void) strlcpy(zc->zc_name, zhp->zfs_name, sizeof (zc->zc_name));
70 rc = ioctl(zhp->zfs_hdl->libzfs_fd, arg, zc);
76 if (zcmd_expand_dst_nvlist(zhp->zfs_hdl, zc) != 0) {
92 rc = zfs_standard_error(zhp->zfs_hdl, errno,
105 zfs_iter_filesystems(zfs_handle_t *zhp, zfs_iter_f func, void *data) argument
111 if (zhp
141 zfs_iter_snapshots(zfs_handle_t *zhp, boolean_t simple, zfs_iter_f func, void *data) argument
179 zfs_iter_bookmarks(zfs_handle_t *zhp, zfs_iter_f func, void *data) argument
234 zfs_sort_snaps(zfs_handle_t *zhp, void *data) argument
284 zfs_iter_snapshots_sorted(zfs_handle_t *zhp, zfs_iter_f callback, void *data) argument
317 snapspec_cb(zfs_handle_t *zhp, void *arg) argument
432 zfs_iter_children(zfs_handle_t *zhp, zfs_iter_f func, void *data) argument
445 zfs_handle_t *zhp; member in struct:iter_stack_frame
457 iter_dependents_cb(zfs_handle_t *zhp, void *arg) argument
516 zfs_iter_dependents(zfs_handle_t *zhp, boolean_t allowrecursion, zfs_iter_f func, void *data) argument
[all...]
/illumos-gate/usr/src/cmd/zinject/
H A Dtranslate.c451 zpool_handle_t *zhp; local
459 if ((zhp = zpool_open(g_zfs, pool)) == NULL)
464 tgt = zpool_find_vdev(zhp, device, &isspare, &iscache, NULL);
H A Dzinject.c672 zfs_handle_t *zhp; local
1072 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL)
1075 if (zfs_unmount(zhp, NULL, 0) != 0)
1084 ret = (zfs_mount(zhp, NULL, 0) != 0);
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_iter.c76 add_pool(zpool_handle_t *zhp, void *data) argument
82 node->zn_handle = zhp;
86 zpool_expand_proplist(zhp, zlp->zl_proplist) != 0) {
87 zpool_close(zhp);
93 zpool_close(zhp);
133 zpool_handle_t *zhp; local
135 if ((zhp = zpool_open_canfail(g_zfs, argv[i])) !=
137 if (add_pool(zhp, zlp) != 0)
185 pool_list_remove(zpool_list_t *zlp, zpool_handle_t *zhp) argument
189 search.zn_handle = zhp;
[all...]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_vss.c73 static int smbd_vss_iterate_count(zfs_handle_t *zhp, void *data);
74 static int smbd_vss_iterate_get_uint64_date(zfs_handle_t *zhp, void *data);
75 static int smbd_vss_iterate_map_gmttoken(zfs_handle_t *zhp, void *data);
316 smbd_vss_iterate_count(zfs_handle_t *zhp, void *data) argument
322 zfs_close(zhp);
326 zfs_close(zhp);
336 smbd_vss_iterate_get_uint64_date(zfs_handle_t *zhp, void *data) argument
345 zfs_prop_get_int(zhp, ZFS_PROP_CREATION);
347 zfs_close(zhp);
351 zfs_close(zhp);
361 smbd_vss_iterate_map_gmttoken(zfs_handle_t *zhp, void *data) argument
[all...]
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_property.c167 create_BasicProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop, argument
178 int result = zfs_prop_get(zhp, prop, propbuf,
186 zhp, prop, &value, &srctype, source, sizeof (source));
239 create_BooleanProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop) argument
241 return (create_BasicProperty(env, zhp, prop, NULL, zjni_int_to_boolean,
246 create_LongProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop) argument
248 return (create_BasicProperty(env, zhp, prop, NULL, zjni_long_to_Long,
253 create_StringProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop) argument
255 return (create_BasicProperty(env, zhp, prop, str_to_string, NULL,
260 create_ObjectProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_ argument
572 zjni_get_Dataset_properties(JNIEnv *env, zfs_handle_t *zhp) argument
[all...]
H A Dlibzfs_jni_main.c336 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); local
339 if (zhp != NULL) {
342 zhp, NULL, index, &p_vdev_id);
346 env, zhp, vdev_cfg,
349 zpool_close(zhp);
373 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); local
377 if (zhp != NULL) {
380 zhp, NULL, index, NULL);
384 env, zhp, vdev_cfg, &p_vdev_id);
386 zpool_close(zhp);
410 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); local
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/
H A Dzfs_retire.c76 find_pool(zpool_handle_t *zhp, void *data) argument
81 zpool_get_prop_int(zhp, ZPOOL_PROP_GUID, NULL)) {
82 cbp->cb_zhp = zhp;
86 zpool_close(zhp);
144 zpool_handle_t *zhp; local
154 zhp = cb.cb_zhp;
155 config = zpool_get_config(zhp, NULL);
158 zpool_close(zhp);
165 zpool_close(zhp);
170 return (zhp);
174 search_pool(zpool_handle_t *zhp, void *data) argument
219 replace_with_spare(fmd_hdl_t *hdl, zpool_handle_t *zhp, nvlist_t *vdev) argument
356 zpool_handle_t *zhp; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/
H A Drpc.rquotad.c278 zfs_handle_t *zhp = NULL; local
285 if ((zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) {
291 if (_zfs_prop_get_userquota_int(zhp, propname, &userquota) != 0) {
292 _zfs_close(zhp);
297 if (_zfs_prop_get_userquota_int(zhp, propname, &userused) != 0) {
298 _zfs_close(zhp);
305 _zfs_close(zhp);
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_iter.c76 zfs_include_snapshots(zfs_handle_t *zhp, callback_data_t *cb) argument
83 zph = zfs_get_pool_handle(zhp);
92 zfs_callback(zfs_handle_t *zhp, void *data) argument
96 boolean_t include_snaps = zfs_include_snapshots(zhp, cb);
99 if ((zfs_get_type(zhp) & cb->cb_types) ||
100 ((zfs_get_type(zhp) == ZFS_TYPE_SNAPSHOT) && include_snaps)) {
104 node->zn_handle = zhp;
111 zfs_prune_proplist(zhp,
114 if (zfs_expand_proplist(zhp, cb->cb_proplist,
136 if (zfs_get_type(zhp)
443 zfs_handle_t *zhp; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/
H A Dquota.c873 zfs_handle_t *zhp = NULL; local
880 if ((zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL)
884 if (_zfs_prop_get_userquota_int(zhp, propname, &userquota) != 0) {
885 _zfs_close(zhp);
890 if (_zfs_prop_get_userquota_int(zhp, propname, &userused) != 0) {
891 _zfs_close(zhp);
898 _zfs_close(zhp);
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/
H A Dzfs_mod.c106 zfs_toplevel_state(zpool_handle_t *zhp) argument
112 verify(nvlist_lookup_nvlist(zpool_get_config(zhp, NULL),
120 zfs_unavail_pool(zpool_handle_t *zhp, void *data) argument
122 if (zfs_toplevel_state(zhp) < VDEV_STATE_DEGRADED) {
125 uap->uap_zhp = zhp;
128 zpool_close(zhp);
149 zfs_process_add(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t isdisk) argument
180 (zpool_vdev_online(zhp, fullpath,
191 if (!zpool_get_prop_int(zhp, ZPOOL_PROP_AUTOREPLACE, NULL) ||
193 (void) zpool_vdev_online(zhp, fullpat
278 zfs_iter_vdev(zpool_handle_t *zhp, nvlist_t *nvl, void *data) argument
338 zfs_iter_pool(zpool_handle_t *zhp, void *data) argument
542 zfsdle_vdev_online(zpool_handle_t *zhp, void *data) argument
602 zfs_update_vdev_fru(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t isdisk) argument
651 zpool_handle_t *zhp; local
[all...]

Completed in 671 milliseconds

123