Searched refs:g_zfs (Results 1 - 15 of 15) sorted by relevance

/osnet-11/usr/src/lib/libbe/common/
H A Dbe_snapshot.c326 if ((zret = zpool_iter(g_zfs, be_find_zpool_callback, &bt)) == 0) {
333 libzfs_error_description(g_zfs));
334 return (zfs_err_to_be_err(g_zfs));
343 if ((zhp = zfs_open(g_zfs, bt.obe_root_ds, ZFS_TYPE_DATASET)) == NULL) {
346 bt.obe_root_ds, libzfs_error_description(g_zfs));
347 return (zfs_err_to_be_err(g_zfs));
361 if ((zhp = zfs_open(g_zfs, bt.obe_root_ds, ZFS_TYPE_DATASET)) == NULL) {
364 bt.obe_root_ds, libzfs_error_description(g_zfs));
365 return (zfs_err_to_be_err(g_zfs));
444 if ((zret = zpool_iter(g_zfs, be_find_zpool_callbac
[all...]
H A Dbe_zones.c144 if ((zhp = zfs_open(g_zfs, root_ds, ZFS_TYPE_FILESYSTEM)) == NULL) {
147 libzfs_error_description(g_zfs));
148 return (zfs_err_to_be_err(g_zfs));
156 ret = zfs_err_to_be_err(g_zfs);
164 ret = zfs_err_to_be_err(g_zfs);
237 if ((zhp = zfs_open(g_zfs, zone_container_ds, ZFS_TYPE_FILESYSTEM))
241 zone_container_ds, libzfs_error_description(g_zfs));
242 return (zfs_err_to_be_err(g_zfs));
309 if ((zhp = zfs_open(g_zfs, zone_container_ds, ZFS_TYPE_FILESYSTEM))
313 zone_container_ds, libzfs_error_description(g_zfs));
[all...]
H A Dbe_create.c51 libzfs_handle_t *g_zfs = NULL; variable
239 if ((zlp = zpool_open(g_zfs, bt.nbe_zpool)) == NULL) {
242 libzfs_error_description(g_zfs));
243 return (zfs_err_to_be_err(g_zfs));
257 if ((zret = zpool_iter(g_zfs, be_exists_callback, bt.nbe_name))
298 "%s\n"), libzfs_error_description(g_zfs));
299 return (zfs_err_to_be_err(g_zfs));
306 if (!zfs_dataset_exists(g_zfs, bt.nbe_zpool,
330 if (zfs_dataset_exists(g_zfs, nbe_root_ds,
484 if (zfs_create(g_zfs, nbe_root_d
[all...]
H A Dbe_rename.c163 if ((zret = zpool_iter(g_zfs, be_find_zpool_callback, &bt)) == 0) {
170 libzfs_error_description(g_zfs));
171 ret = zfs_err_to_be_err(g_zfs);
198 if ((zhp = zfs_open(g_zfs, bt.obe_root_ds, ZFS_TYPE_FILESYSTEM))
202 bt.obe_root_ds, libzfs_error_description(g_zfs));
203 ret = zfs_err_to_be_err(g_zfs);
211 libzfs_error_description(g_zfs));
212 ret = zfs_err_to_be_err(g_zfs);
219 if ((zhp = zfs_open(g_zfs, bt.nbe_root_ds, ZFS_TYPE_FILESYSTEM))
223 bt.obe_root_ds, libzfs_error_description(g_zfs));
[all...]
H A Dbe_activate.c154 if ((zret = zpool_iter(g_zfs, be_find_zpool_callback, &cb)) == 0) {
161 libzfs_error_description(g_zfs));
162 ret = zfs_err_to_be_err(g_zfs);
204 if (g_zfs == NULL) {
229 if ((zhp = zfs_open(g_zfs, root_ds, ZFS_TYPE_FILESYSTEM)) != NULL) {
240 libzfs_error_description(g_zfs));
247 libzfs_error_description(g_zfs));
248 ret = zfs_err_to_be_err(g_zfs);
261 zhp = zfs_open(g_zfs, root_ds, ZFS_TYPE_FILESYSTEM);
421 if ((zhp = zpool_open(g_zfs, boot_rpoo
[all...]
H A Dbe_mount.c298 if ((err = zpool_iter(g_zfs, be_find_zpool_callback, &bt))
305 "%s\n"), libzfs_error_description(g_zfs));
306 return (zfs_err_to_be_err(g_zfs));
318 if ((zhp = zfs_open(g_zfs, bt.obe_root_ds, ZFS_TYPE_FILESYSTEM)) ==
322 libzfs_error_description(g_zfs));
323 return (zfs_err_to_be_err(g_zfs));
396 (void) zpool_iter(g_zfs, zpool_shared_fs_callback, &md);
470 if ((zret = zpool_iter(g_zfs, be_find_zpool_callback, &bt))
478 libzfs_error_description(g_zfs));
479 ret = zfs_err_to_be_err(g_zfs);
[all...]
H A Dbe_utils.c101 zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET);
106 err = zfs_err_to_be_err(g_zfs);
255 if ((g_zfs = libzfs_init()) == NULL) {
277 if (g_zfs)
278 libzfs_fini(g_zfs);
280 g_zfs = NULL;
837 if (g_zfs == NULL) {
844 if ((zret = zpool_iter(g_zfs,
852 libzfs_error_description(g_zfs));
853 ret = zfs_err_to_be_err(g_zfs);
[all...]
H A Dbe_list.c179 if ((zpool_iter(g_zfs, be_get_list_callback, &cb)) != 0) {
287 if (!zfs_dataset_exists(g_zfs, zone_be_container_ds,
294 if ((zhp = zfs_open(g_zfs, zone_be_container_ds,
298 libzfs_error_description(g_zfs));
299 ret = zfs_err_to_be_err(g_zfs);
386 if (!zfs_dataset_exists(g_zfs, open_ds, ZFS_TYPE_FILESYSTEM)) {
395 if ((zhp = zfs_open(g_zfs, open_ds, ZFS_TYPE_FILESYSTEM)) == NULL) {
398 libzfs_error_description(g_zfs));
399 ret = zfs_err_to_be_err(g_zfs);
583 libzfs_error_description(g_zfs));
[all...]
H A Dlibbe_priv.h126 extern libzfs_handle_t *g_zfs;
/osnet-11/usr/src/lib/pam_modules/zfs_key/
H A Dzfs_key.c183 libzfs_handle_t *g_zfs = NULL; local
258 g_zfs = libzfs_init();
261 zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_FILESYSTEM);
263 libzfs_fini(g_zfs);
285 libzfs_crypto_set_key(g_zfs, authtok, strlen(authtok));
287 err = zfs_create(g_zfs, dataset, ZFS_TYPE_FILESYSTEM, props);
293 libzfs_error_description(g_zfs));
296 zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_FILESYSTEM);
375 dataset, libzfs_error_description(g_zfs));
385 libzfs_error_description(g_zfs));
444 libzfs_handle_t *g_zfs = NULL; local
[all...]
/osnet-11/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_util.h106 extern libzfs_handle_t *g_zfs;
H A Dlibzfs_jni_main.c35 libzfs_handle_t *g_zfs; variable
66 if ((g_zfs = libzfs_init()) == NULL)
151 result = zpool_iter(g_zfs, zjni_create_add_Pool, &data);
333 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool);
370 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool);
407 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool);
H A Dlibzfs_jni_dataset.c582 parent_zhp = zfs_open(g_zfs, parent, ZFS_TYPE_DATASET);
614 zfs_handle_t *zhp = zfs_open(g_zfs, zpool_get_name(zphp),
692 zhp = zfs_open(g_zfs, name, parent_typemask);
713 zpool_handle_t *zphp = zpool_open_canfail(g_zfs, name);
760 zfs_handle_t *zhp = zfs_open(g_zfs, path,
774 zpool_handle_t *zphp = zpool_open_canfail(g_zfs,
808 zfs_handle_t *zhp = zfs_open(g_zfs, name, typemask);
811 zpool_handle_t *zphp = zpool_open_canfail(g_zfs, name);
H A Dlibzfs_jni_pool.c1153 nvlist_t *pools = zpool_find_import(g_zfs, argc, argv);
/osnet-11/usr/src/lib/libpower/common/
H A Dpm_suspend.c60 static libzfs_handle_t *g_zfs = NULL; variable
726 if (g_zfs == NULL && (g_zfs = libzfs_init()) == NULL) {
740 (void) zfs_iter_root(g_zfs, be_get_ds_from_dir_callback, &dd);

Completed in 135 milliseconds