Searched defs:g_zfs (Results 1 - 16 of 16) sorted by relevance

/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_util.h36 libzfs_handle_t *g_zfs; variable
H A Dzfs_main.c82 libzfs_handle_t *g_zfs; variable
766 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL)
776 if (zfs_dataset_exists(g_zfs, argv[1], ZFS_TYPE_FILESYSTEM |
779 if (zfs_create_ancestors(g_zfs, argv[1]) != 0)
790 clone = zfs_open(g_zfs, argv[1], ZFS_TYPE_DATASET);
862 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) {
865 libzfs_error_description(g_zfs));
879 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) {
882 libzfs_error_description(g_zfs));
940 zpool_handle = zpool_open(g_zfs, arg
[all...]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_util.h67 libzfs_handle_t *g_zfs; variable
/illumos-gate/usr/src/cmd/fm/schemes/zfs/
H A Dscheme.c37 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/lib/fm/topo/libtopo/common/
H A Dzfs.c64 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/oamuser/user/
H A Dhomedir.c60 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/zhack/
H A Dzhack.c57 libzfs_handle_t *g_zfs; variable
131 g_zfs = libzfs_init();
132 ASSERT(g_zfs != NULL);
141 error = zpool_tryimport(g_zfs, target, &config, &g_importargs);
144 libzfs_error_description(g_zfs));
531 libzfs_fini(g_zfs);
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_main.c38 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/zinject/
H A Dzinject.c155 libzfs_handle_t *g_zfs; variable
740 if ((g_zfs = libzfs_init()) == NULL) {
746 libzfs_print_on_error(g_zfs, B_TRUE);
799 libzfs_fini(g_zfs);
1088 libzfs_fini(g_zfs);
1160 libzfs_fini(g_zfs);
1186 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL)
1200 libzfs_fini(g_zfs);
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/
H A Drpc.rquotad.c90 static libzfs_handle_t *g_zfs = NULL; variable
101 if (g_zfs != NULL)
115 g_zfs = _libzfs_init();
284 if (g_zfs == NULL)
287 if ((zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) {
728 if (g_zfs != NULL)
729 _libzfs_fini(g_zfs);
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/
H A Dquota.c101 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 Dzfs.c54 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 Dbe_create.c54 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 Dhalt.c103 static libzfs_handle_t *g_zfs; variable
689 if ((g_zfs = libzfs_init()) == NULL) {
696 if ((zhp = zfs_open(g_zfs, arg,
713 libzfs_fini(g_zfs);
767 if ((g_zfs = libzfs_init()) == NULL)
771 if ((zhp = zfs_open(g_zfs, mntsp,
785 if ((zpoolp = zpool_open(g_zfs, poolname)) == NULL) {
816 libzfs_fini(g_zfs);
/illumos-gate/usr/src/cmd/fs.d/
H A Ddf.c240 static libzfs_handle_t *g_zfs; variable
253 return (g_zfs != NULL);
268 g_zfs = _libzfs_init();
272 return (g_zfs != NULL);
1217 zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET);
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c112 libzfs_handle_t *g_zfs; variable
5886 g_zfs = libzfs_init();
5887 ASSERT(g_zfs != NULL);
5966 error = zpool_tryimport(g_zfs, target_pool, &cfg, &args);
6096 libzfs_fini(g_zfs);

Completed in 192 milliseconds