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

/osnet-11/usr/src/lib/libshare_plugins/zfs/
H A Dlibshare_zfs.c131 sa_zfs_close(void *zfs_hdl) argument
133 libzfs_fini(zfs_hdl);
139 libzfs_handle_t *zfs_hdl; local
142 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL) {
146 libzfs_cache_clear(zfs_hdl);
205 libzfs_handle_t *zfs_hdl; local
208 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
211 rc = zfssa_share_storage_write(zfs_hdl, share, persist);
219 libzfs_handle_t *zfs_hdl; local
222 if ((zfs_hdl
248 libzfs_handle_t *zfs_hdl; local
316 libzfs_handle_t *zfs_hdl; local
355 libzfs_handle_t *zfs_hdl; local
408 libzfs_handle_t *zfs_hdl; local
467 libzfs_handle_t *zfs_hdl; local
486 libzfs_handle_t *zfs_hdl; local
502 libzfs_handle_t *zfs_hdl; local
516 libzfs_handle_t *zfs_hdl; local
530 libzfs_handle_t *zfs_hdl; local
564 libzfs_handle_t *zfs_hdl; local
680 libzfs_handle_t *zfs_hdl; local
[all...]
/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_crypto.c310 libzfs_crypto_set_key(zhp->zfs_hdl, key, keylen);
316 zhp->zfs_hdl->libzfs_crypt.zc_clone_newkey = B_TRUE;
834 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
836 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
842 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
844 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
849 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
851 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
862 ret = zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_CRYPTO_KEY_INHERIT, &zc);
868 ret = key_hdl_to_zc(zhp->zfs_hdl, zh
[all...]
H A Dlibzfs_diff.c94 if (ioctl(di->zhp->zfs_hdl->libzfs_fd, ZFS_IOC_OBJ_TO_PATH,
347 if (err = ioctl(di->zhp->zfs_hdl->libzfs_fd,
361 if (err = ioctl(di->zhp->zfs_hdl->libzfs_fd,
489 if (err = ioctl(di->zhp->zfs_hdl->libzfs_fd,
595 libzfs_handle_t *hdl = di->zhp->zfs_hdl;
642 libzfs_handle_t *hdl = di->zhp->zfs_hdl;
729 di->ds = zfs_alloc(di->zhp->zfs_hdl, tdslen + 1);
790 mounted = is_mounted(di->zhp->zfs_hdl, dsnm, mntpt);
795 return (zfs_error(di->zhp->zfs_hdl, EZFS_BADTYPE, di->errbuf));
818 di->tomnt = zfs_asprintf(di->zhp->zfs_hdl, "
[all...]
H A Dlibzfs_share.c136 return (zfs_cache_get_quiet(zhp->zfs_hdl, zfs_name, ZFS_TYPE_SHARE));
154 return (zfs_cache_get_quiet(zhp->zfs_hdl, zfs_name,
257 parent_zhp = zfs_share_open_parent(zhp->zfs_hdl, zhp->zfs_name);
481 libzfs_handle_t *hdl = zhp->zfs_hdl;
516 libzfs_handle_t *zfs_hdl = zhp->zfs_hdl; local
535 zfs_error_aux(zfs_hdl, dgettext(TEXT_DOMAIN,
537 (void) zfs_error(zfs_hdl, EZFS_BADPROP, errbuf);
548 libzfs_handle_t *zfs_hdl = zhp->zfs_hdl; local
[all...]
H A Dlibzfs_dataset.c219 libzfs_handle_t *hdl = zhp->zfs_hdl;
248 libzfs_handle_t *hdl = zhp->zfs_hdl;
262 libzfs_handle_t *hdl = zhp->zfs_hdl;
284 pool_name = zfs_alloc(zhp->zfs_hdl, len);
314 libzfs_handle_t *hdl = zhp->zfs_hdl;
338 libzfs_handle_t *hdl = zhp->zfs_hdl;
359 err = zcmd_read_dst_nvlist(zhp->zfs_hdl, &zc, &recvdprops);
377 if (zcmd_read_dst_nvlist(zhp->zfs_hdl, zc, &allprops) != 0) {
405 if (zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &zc, 0) != 0)
473 zhp->zfs_hdl
[all...]
H A Dlibzfs_cache.c235 if (zhp->zfs_hdl->libzfs_mnttab_enable && zfs_is_mounted(zhp, &mp)) {
392 zp->zp_name = zfs_strdup(zhp->zfs_hdl,
447 if (zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &zc, 0) != 0)
461 return zfs_standard_error_fmt(zhp->zfs_hdl, zhp->zfs_name,
467 if ((ret = zfs_cache_do_stats_ioctl(zhp->zfs_hdl,
479 if ((nzhp = make_dataset_handle_zc(zhp->zfs_hdl,
557 if (get_dependents(zhp->zfs_hdl, allowrecursion, zhp->zfs_name,
565 if ((child = zfs_cache_get(zhp->zfs_hdl,
619 return (zhp->zfs_hdl->libzfs_handle_cache);
H A Dlibzfs_mount.c192 is_mounted(libzfs_handle_t *zfs_hdl, const char *special, char **where) argument
196 if (libzfs_mnttab_find(zfs_hdl, special, &entry) != 0)
200 *where = zfs_strdup(zfs_hdl, entry.mnt_mountp);
215 *where = zfs_strdup(zhp->zfs_hdl, zhp->zfs_mountp);
263 libzfs_handle_t *hdl = zhp->zfs_hdl;
286 tmpopts = zfs_strdup(zhp->zfs_hdl, mntopts);
295 tmpmount = zfs_strdup(zhp->zfs_hdl, value);
354 if ((parent_zhp = zfs_cache_get(zhp->zfs_hdl, parentname,
378 if (is_mounted(zhp->zfs_hdl, parentname, &where)) {
569 libzfs_handle_t *hdl = zhp->zfs_hdl;
[all...]
H A Dlibzfs_impl.h102 libzfs_handle_t *zfs_hdl; member in struct:zfs_handle
143 #define ZFS_LIBSHARE_HDL(_zhp) (libzfs_get_libshare((_zhp)->zfs_hdl))
281 #define ZFS_GET_CACHE(_zhp) ((_zhp)->zfs_hdl->libzfs_handle_cache)
H A Dlibzfs_changelist.c258 (void) zfs_error(cn->cn_handle->zfs_hdl,
398 (void) zfs_error(zhp->zfs_hdl, EZFS_SHAREFAILED, errbuf);
480 (void) zfs_error(cn->cn_handle->zfs_hdl,
910 if ((clp = zfs_alloc(zhp->zfs_hdl, sizeof (prop_changelist_t))) == NULL)
952 (void) zfs_error(zhp->zfs_hdl, EZFS_NOMEM, "internal error");
964 (void) zfs_error(zhp->zfs_hdl, EZFS_NOMEM, "internal error");
1009 if (zfs_cache_iter_children(zhp->zfs_hdl, zhp, change_one,
1021 if ((temp = zfs_open(zhp->zfs_hdl, zfs_get_name(zhp),
1034 if ((cn = zfs_alloc(zhp->zfs_hdl,
H A Dlibzfs_sendrecv.c819 zfs_handle_t *origin = zfs_open(zhp->zfs_hdl,
935 node = zfs_alloc(zhp->zfs_hdl, sizeof (zfs_node_t));
1019 libzfs_handle_t *hdl = zhp->zfs_hdl;
1038 if (ioctl(zhp->zfs_hdl->libzfs_fd, ZFS_IOC_SEND, &zc) != 0) {
1115 pzhp = zfs_open(zhp->zfs_hdl, zhp->zfs_name, ZFS_TYPE_DATASET);
1277 if (ioctl(zhp->zfs_hdl->libzfs_fd, ZFS_IOC_OBJSET_STATS, &zc) != 0) {
1295 if (ioctl(zhp->zfs_hdl->libzfs_fd,
1417 zhp = zfs_open(rzhp->zfs_hdl, fsname, ZFS_TYPE_DATASET);
1472 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1474 return (zfs_error(zhp->zfs_hdl, EZFS_NOEN
[all...]
H A Dlibzfs_shadow.c227 libzfs_handle_t *hdl = zhp->zfs_hdl;
H A Dlibzfs_util.c889 return (zhp->zfs_hdl);
/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dinuse_zpool.c63 static libzfs_handle_t *zfs_hdl; variable
97 if (zfsdl_zpool_in_use(zfs_hdl, fd, &state,
166 if ((zfs_hdl = (*zfsdl_libzfs_init)(B_FALSE)) == NULL) {
/osnet-11/usr/src/lib/pybootmgmt/common/bootmgmt/
H A Dpysol.py1300 def zfs_get_prop_string(lzfsh, zfs_hdl, propid, get_source=False):
1307 ret = _libzfs.zfs_prop_get(zfs_hdl, propid, buf,
/osnet-11/usr/src/lib/pam_modules/zfs_key/
H A Dzfs_key.c122 ret = ioctl(zhp->zfs_hdl->libzfs_fd, ZFS_IOC_SET_FSACL, &zc);

Completed in 101 milliseconds