/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_util.h | 36 libzfs_handle_t *g_zfs; variable
|
H A D | zfs_main.c | 76 libzfs_handle_t *g_zfs; variable 658 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL) 668 if (zfs_dataset_exists(g_zfs, argv[1], ZFS_TYPE_FILESYSTEM | 671 if (zfs_create_ancestors(g_zfs, argv[1]) != 0) 682 clone = zfs_open(g_zfs, argv[1], ZFS_TYPE_DATASET); 754 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) { 757 libzfs_error_description(g_zfs)); 771 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) { 774 libzfs_error_description(g_zfs)); 832 zpool_handle = zpool_open(g_zfs, arg [all...] |
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_util.h | 66 libzfs_handle_t *g_zfs; variable
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | zfs.c | 64 static libzfs_handle_t *g_zfs = NULL; variable 90 if ((g_zfs = libzfs_init()) == NULL) { 109 libzfs_fini(g_zfs); 110 g_zfs = NULL; 175 if (zpool_iter(g_zfs, find_pool, &cb) == 1) {
|
/illumos-gate/usr/src/cmd/fm/schemes/zfs/ |
H A D | scheme.c | 37 libzfs_handle_t *g_zfs; variable 71 if (zpool_iter(g_zfs, find_pool, &cb) == 1) { 155 if (zpool_iter(g_zfs, find_pool, &cb) != 1) 182 if (zpool_iter(g_zfs, find_pool, &cb) != 1) 211 if (zpool_iter(g_zfs, find_pool, &cb) != 1) 241 g_zfs = libzfs_init(); 243 if (g_zfs == NULL) 252 if (g_zfs) 253 libzfs_fini(g_zfs);
|
/illumos-gate/usr/src/cmd/oamuser/user/ |
H A D | homedir.c | 60 static libzfs_handle_t *g_zfs = NULL; variable 97 if (g_zfs == NULL) 98 g_zfs = libzfs_init(); 99 if (g_zfs == NULL) { 111 if ((zfs_create(g_zfs, nm, ZFS_TYPE_FILESYSTEM, NULL) 113 ((zhp = zfs_open(g_zfs, nm, ZFS_TYPE_FILESYSTEM)) == 116 libzfs_error_description(g_zfs)); 117 libzfs_fini(g_zfs); 118 g_zfs = NULL; 124 libzfs_error_description(g_zfs)); [all...] |
/illumos-gate/usr/src/cmd/zinject/ |
H A D | zinject.c | 155 libzfs_handle_t *g_zfs; variable 679 if ((g_zfs = libzfs_init()) == NULL) { 685 libzfs_print_on_error(g_zfs, B_TRUE); 1072 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) 1086 libzfs_fini(g_zfs);
|
/illumos-gate/usr/src/cmd/zhack/ |
H A D | zhack.c | 57 libzfs_handle_t *g_zfs; variable 136 g_zfs = libzfs_init(); 137 ASSERT(g_zfs != NULL); 159 pools = zpool_search_import(g_zfs, &g_importargs); 164 if (zpool_search_import(g_zfs, &g_importargs) != NULL || 564 libzfs_fini(g_zfs);
|
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_main.c | 38 libzfs_handle_t *g_zfs; variable 69 if ((g_zfs = libzfs_init()) == NULL) 154 result = zpool_iter(g_zfs, zjni_create_add_Pool, &data); 336 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); 373 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); 410 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/ |
H A D | rpc.rquotad.c | 88 static libzfs_handle_t *g_zfs = NULL; variable 99 if (g_zfs != NULL) 113 g_zfs = _libzfs_init(); 282 if (g_zfs == NULL) 285 if ((zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) { 729 if (g_zfs != NULL) 730 _libzfs_fini(g_zfs);
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 101 static libzfs_handle_t *g_zfs = NULL; variable 112 if (g_zfs != NULL) 126 g_zfs = _libzfs_init(); 877 if (g_zfs == NULL) 880 if ((zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) 905 if (g_zfs != NULL) 906 _libzfs_fini(g_zfs);
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zfs.c | 54 libzfs_handle_t *g_zfs; variable 153 (void) zfs_iter_root(g_zfs, match_mountpoint, &cb); 291 res = zfs_snapshot(g_zfs, snapshot_name, B_FALSE, NULL); 370 if ((zhp = zfs_open(g_zfs, snapshot_name, ZFS_TYPE_SNAPSHOT)) == NULL) 400 if ((clone = zfs_open(g_zfs, zonepath, ZFS_TYPE_DATASET)) == NULL) 538 zhp = zfs_open(g_zfs, snap_name, ZFS_TYPE_DATASET); 704 libzfs_error_description(g_zfs)); 767 if ((cln_zhp = zfs_open(g_zfs, nm, ZFS_TYPE_FILESYSTEM)) == NULL) 772 nm, libzfs_error_description(g_zfs)); 813 if ((zhp = zfs_open(g_zfs, n [all...] |
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_create.c | 54 libzfs_handle_t *g_zfs = NULL; variable 178 if ((zlp = zpool_open(g_zfs, bt.nbe_zpool)) == NULL) { 181 libzfs_error_description(g_zfs)); 182 return (zfs_err_to_be_err(g_zfs)); 196 if ((zret = zpool_iter(g_zfs, be_exists_callback, bt.nbe_name)) > 0) { 202 libzfs_error_description(g_zfs)); 203 return (zfs_err_to_be_err(g_zfs)); 265 if (zfs_create(g_zfs, nbe_root_ds, ZFS_TYPE_FILESYSTEM, 269 libzfs_error_description(g_zfs)); 270 ret = zfs_err_to_be_err(g_zfs); [all...] |
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 102 static libzfs_handle_t *g_zfs; variable 688 if ((g_zfs = libzfs_init()) == NULL) { 695 if ((zhp = zfs_open(g_zfs, arg, 712 libzfs_fini(g_zfs); 766 if ((g_zfs = libzfs_init()) == NULL) 770 if ((zhp = zfs_open(g_zfs, mntsp, 784 if ((zpoolp = zpool_open(g_zfs, poolname)) == NULL) { 815 libzfs_fini(g_zfs);
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | df.c | 234 static libzfs_handle_t *g_zfs; variable 247 return (g_zfs != NULL); 262 g_zfs = _libzfs_init(); 266 return (g_zfs != NULL); 1272 zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET);
|
/illumos-gate/usr/src/cmd/zdb/ |
H A D | zdb.c | 97 libzfs_handle_t *g_zfs; variable 3509 pools = zpool_search_import(g_zfs, &args); 3694 g_zfs = libzfs_init(); 3695 ASSERT(g_zfs != NULL); 3853 libzfs_fini(g_zfs);
|