Lines Matching defs:share

67 static int smb_disable_share(sa_share_t share, char *);
136 * for share management.
377 * smb_enable_share tells the implementation that it is to enable the share.
383 smb_enable_share(sa_share_t share)
409 path = sa_get_share_attr(share, "path");
428 "SMB: Cannot share remove "
461 /* Each share can have multiple resources */
462 for (resource = sa_get_share_resource(share, NULL);
465 err = smb_build_shareinfo(share, resource, &si);
476 (void) sa_sharetab_fill_zfs(share, &sh, "smb");
477 err = sa_share_zfs(share, resource, (char *)path, &sh,
487 (void) sa_update_sharetab(share, "smb");
495 * This is the share for CIFS all shares have resource names.
504 sa_share_t share;
510 share = sa_get_resource_parent(resource);
511 if (share == NULL)
528 if ((ret = smb_build_shareinfo(share, resource, &si)) != SA_OK)
532 * Attempt to add the share. Any error that occurs if it was
535 * service up will enable the share that was just added prior
540 (void) sa_update_sharetab(share, "smb");
555 sa_share_t share;
572 share = sa_get_resource_parent(resource);
573 if (share != NULL) {
574 rname = sa_get_share_attr(share, "path");
591 * smb_share_changed(sa_share_t share)
593 * The specified share has changed.
596 smb_share_changed(sa_share_t share)
605 path = sa_get_share_attr(share, "path");
609 for (resource = sa_get_share_resource(share, NULL);
628 sa_share_t share;
634 if ((share = sa_get_resource_parent(resource)) == NULL)
637 if ((res = smb_build_shareinfo(share, resource, &si)) != SA_OK)
649 * smb_disable_share(sa_share_t share, char *path)
651 * Unshare the specified share. Note that "path" is the same
652 * path as what is in the "share" object. It is passed in to avoid an
657 smb_disable_share(sa_share_t share, char *path)
672 * If the share is in a ZFS group we need to handle it
674 * enough since we may be in a legacy share case.
676 parent = sa_get_parent_group(share);
682 for (resource = sa_get_share_resource(share, NULL);
703 (void) sa_sharetab_fill_zfs(share, &sh, "smb");
704 err = sa_share_zfs(share, resource, (char *)path, &sh,
740 handle = sa_find_group_handle((sa_group_t)share);
776 if (optdefs[optindex].share && !sa_is_share(parent_group))
1593 sa_share_t share;
1602 if ((share = sa_find_share(handle, si->shr_path)) == NULL) {
1606 share = sa_get_share(group, si->shr_path);
1607 if (share == NULL) {
1608 share = sa_add_share(group, si->shr_path,
1610 if (share == NULL)
1617 * transient and added to the share.
1619 resource = sa_get_share_resource(share, si->shr_name);
1621 resource = sa_add_resource(share,
1698 * fix_resource_name(share, name, prefix)
1703 fix_resource_name(sa_share_t share, char *name, char *prefix)
1713 dataset = sa_get_share_attr(share, "dataset");
1732 * ZFS sharesmb and sharemgr "share" command to work. group can be a
1733 * group, a share or a resource.
1772 * SA_PROP_SHARE_ONLY, so we come back in with a share
1847 * resource level. We have a "share"
1850 * group, the check for group/share
1853 * "name" but no share.
1934 * to those used by "share" are done. this function does one property
2111 smb_build_shareinfo(sa_share_t share, sa_resource_t resource, smb_share_t *si)
2121 if ((path = sa_get_share_attr(share, "path")) == NULL)
2136 val = sa_get_share_description(share);
2143 si->shr_flags = (sa_is_persistent(share))
2185 * Map a client-side caching (CSC) option to the appropriate share
2233 * one) encountered in the share flags.
2366 * Updates the optionset properties of the share resource.