Lines Matching refs:cn_handle
67 zfs_handle_t *cn_handle;
125 if (!ZFS_IS_VOLUME(cn->cn_handle)) {
133 if (zfs_unmount(cn->cn_handle, NULL,
140 (void) zfs_unshare_smb(cn->cn_handle, NULL);
191 remove_mountpoint(cn->cn_handle);
221 zfs_refresh_properties(cn->cn_handle);
223 if (ZFS_IS_VOLUME(cn->cn_handle))
230 sharenfs = ((zfs_prop_get(cn->cn_handle, ZFS_PROP_SHARENFS,
234 sharesmb = ((zfs_prop_get(cn->cn_handle, ZFS_PROP_SHARESMB,
238 needs_key = (zfs_prop_get_int(cn->cn_handle,
242 zfs_is_mounted(cn->cn_handle, NULL);
246 (zfs_prop_get_int(cn->cn_handle,
249 if (zfs_mount(cn->cn_handle, NULL, 0) != 0)
261 errors += zfs_share_nfs(cn->cn_handle);
264 errors += zfs_unshare_nfs(cn->cn_handle, NULL);
268 errors += zfs_share_smb(cn->cn_handle);
271 errors += zfs_unshare_smb(cn->cn_handle, NULL);
324 if (!isa_child_of(cn->cn_handle->zfs_name, src))
330 remove_mountpoint(cn->cn_handle);
333 (void) strlcat(newname, cn->cn_handle->zfs_name + strlen(src),
336 (void) strlcpy(cn->cn_handle->zfs_name, newname,
337 sizeof (cn->cn_handle->zfs_name));
362 if (zfs_unshare_proto(cn->cn_handle, NULL, proto) != 0)
396 if (strcmp(cn->cn_handle->zfs_name, name) == 0) {
398 zfs_close(cn->cn_handle);
425 zfs_close(cn->cn_handle);
456 cn->cn_handle = zhp;
531 cn->cn_handle = zhp;
580 haspropa = (zfs_prop_get(ca->cn_handle, prop, propa, sizeof (propa),
582 haspropb = (zfs_prop_get(cb->cn_handle, prop, propb, sizeof (propb),
754 cn->cn_handle = temp;