Lines Matching defs:zfs_hdl

131 sa_zfs_close(void *zfs_hdl)
133 libzfs_fini(zfs_hdl);
139 libzfs_handle_t *zfs_hdl;
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;
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;
222 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
225 rc = zfssa_share_storage_read(zfs_hdl, mntpnt, sh_name, sharep);
248 libzfs_handle_t *zfs_hdl;
253 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
256 rc = zfssa_share_storage_read_init(zfs_hdl, srhp->srh_mntpnt,
316 libzfs_handle_t *zfs_hdl;
321 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
324 rc = zfs_path_to_mntpnt(zfs_hdl, fs_name, mntpnt, sizeof (mntpnt),
332 rc = zfs_share_resource_remove(zfs_hdl, ds_name, mntpnt,
355 libzfs_handle_t *zfs_hdl;
360 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
363 rc = zfs_path_to_mntpnt(zfs_hdl, sh_path, mntpnt, sizeof (mntpnt),
408 libzfs_handle_t *zfs_hdl;
413 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
416 rc = zfs_path_to_mntpnt(zfs_hdl, sh_path, mntpnt, sizeof (mntpnt),
467 libzfs_handle_t *zfs_hdl;
470 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
473 rc = zfs_path_to_mntpnt(zfs_hdl, sh_path, mntpnt, mplen,
486 libzfs_handle_t *zfs_hdl;
491 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
494 return (zfssa_is_sharing_enabled_share(zfs_hdl, sh_path, sh_name,
502 libzfs_handle_t *zfs_hdl;
505 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
508 return (zfssa_sharing_get_prop(zfs_hdl, sh_path, sh_name, proto,
516 libzfs_handle_t *zfs_hdl;
519 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
522 return (zfssa_sharing_set_prop(zfs_hdl, mntpnt, sh_name, proto,
530 libzfs_handle_t *zfs_hdl;
535 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
538 zhp = zfs_cache_get_quiet(zfs_hdl, sh_path, ZFS_TYPE_FILESYSTEM);
564 libzfs_handle_t *zfs_hdl;
568 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL)
571 zhp = zfs_cache_get_quiet(zfs_hdl, mntpnt, ZFS_TYPE_FILESYSTEM);
680 libzfs_handle_t *zfs_hdl;
689 if ((zfs_hdl = sa_get_fs_handle(shdl, SA_FS_ZFS, &rc)) == NULL) {
699 zhp = zfs_cache_get_quiet(zfs_hdl, mountpoint, ZFS_TYPE_FILESYSTEM);