Lines Matching defs:cn_handle
66 zfs_handle_t *cn_handle;
121 if (!ZFS_IS_VOLUME(cn->cn_handle)) {
127 if (zfs_unmount(cn->cn_handle, NULL,
134 (void) zfs_unshare_smb(cn->cn_handle, NULL);
177 remove_mountpoint(cn->cn_handle);
185 if (cn->cn_handle != NULL) {
186 hdl = cn->cn_handle->zfs_hdl;
215 zfs_refresh_properties(cn->cn_handle);
217 if (ZFS_IS_VOLUME(cn->cn_handle))
224 sharenfs = ((zfs_prop_get(cn->cn_handle, ZFS_PROP_SHARENFS,
228 sharesmb = ((zfs_prop_get(cn->cn_handle, ZFS_PROP_SHARESMB,
232 mounted = zfs_is_mounted(cn->cn_handle, NULL);
236 (zfs_prop_get_int(cn->cn_handle,
239 if (zfs_mount(cn->cn_handle, NULL, 0) != 0)
251 errors += zfs_share_nfs(cn->cn_handle);
253 errors += zfs_unshare_nfs(cn->cn_handle, NULL);
255 errors += zfs_share_smb(cn->cn_handle);
257 errors += zfs_unshare_smb(cn->cn_handle, NULL);
300 if (!isa_child_of(cn->cn_handle->zfs_name, src))
306 remove_mountpoint(cn->cn_handle);
309 (void) strcat(newname, cn->cn_handle->zfs_name + strlen(src));
311 (void) strlcpy(cn->cn_handle->zfs_name, newname,
312 sizeof (cn->cn_handle->zfs_name));
332 if (zfs_unshare_proto(cn->cn_handle, NULL, proto) != 0)
361 if (strcmp(cn->cn_handle->zfs_name, name) == 0) {
363 zfs_close(cn->cn_handle);
382 zfs_close(cn->cn_handle);
447 cn->cn_handle = zhp;
509 hasmounta = (zfs_prop_get(ca->cn_handle, ZFS_PROP_MOUNTPOINT, mounta,
511 hasmountb = (zfs_prop_get(cb->cn_handle, ZFS_PROP_MOUNTPOINT, mountb,
660 cn->cn_handle = temp;