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

/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_util.h36 libzfs_handle_t *g_zfs; variable
H A Dzfs_main.c83 libzfs_handle_t *g_zfs; variable
767 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL)
777 if (zfs_dataset_exists(g_zfs, argv[1], ZFS_TYPE_FILESYSTEM |
780 if (zfs_create_ancestors(g_zfs, argv[1]) != 0)
791 clone = zfs_open(g_zfs, argv[1], ZFS_TYPE_DATASET);
863 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) {
866 libzfs_error_description(g_zfs));
880 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) {
883 libzfs_error_description(g_zfs));
941 zpool_handle = zpool_open(g_zfs, arg
[all...]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_util.h75 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/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
741 if ((g_zfs = libzfs_init()) == NULL) {
747 libzfs_print_on_error(g_zfs, B_TRUE);
800 libzfs_fini(g_zfs);
1090 libzfs_fini(g_zfs);
1162 libzfs_fini(g_zfs);
1188 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL)
1202 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.c55 libzfs_handle_t *g_zfs = NULL; variable
179 if ((zlp = zpool_open(g_zfs, bt.nbe_zpool)) == NULL) {
182 libzfs_error_description(g_zfs));
183 return (zfs_err_to_be_err(g_zfs));
197 if ((zret = zpool_iter(g_zfs, be_exists_callback, bt.nbe_name)) > 0) {
203 libzfs_error_description(g_zfs));
204 return (zfs_err_to_be_err(g_zfs));
266 if (zfs_create(g_zfs, nbe_root_ds, ZFS_TYPE_FILESYSTEM,
270 libzfs_error_description(g_zfs));
271 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
702 if ((g_zfs = libzfs_init()) == NULL) {
709 if ((zhp = zfs_open(g_zfs, arg,
726 libzfs_fini(g_zfs);
780 if ((g_zfs = libzfs_init()) == NULL)
784 if ((zhp = zfs_open(g_zfs, mntsp,
798 if ((zpoolp = zpool_open(g_zfs, poolname)) == NULL) {
829 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);

Completed in 213 milliseconds