Lines Matching defs:share

199  * Shares are represented in SMF as property groups. Due to share
387 * List of known share attributes.
411 * Make a resource node on the share node. The valusestr will either
458 * Extract the share definition from the share property group. We do
504 * Construct the share XML node. It is similar to sa_add_share
509 node = xmlNewChild(root, NULL, (xmlChar *)"share", NULL);
513 * stored in the share "id" property. We use this
524 /* Iterate over the share pg properties */
552 * If a share attr, then simple -
560 * there can be multiple on each share. The
605 * A share without a path is broken so we want to not include
607 * the process of creating a share, it could happen. They
609 * sharemgr is running and in the process of creating a share.
630 * Search all shares in all groups until we find the share represented
638 sa_share_t share = NULL;
645 for (share = sa_get_share(group, NULL);
646 share != NULL;
647 share = sa_get_next_share(share)) {
648 id = sa_get_share_attr(share, "id");
661 return (share);
665 * find_resource_by_index(share, index)
667 * Search the resource records on the share for the id index.
670 find_resource_by_index(sa_share_t share, char *index)
676 for (resource = sa_get_share_resource(share, NULL);
694 * Extract share properties from the SMF property group. More sanity
695 * checks are done and the share object is created. We ignore some
714 sa_share_t share;
758 * security. We now have to find the share that it is really
763 share = find_share_by_id(sahandle, id);
764 if (share == NULL)
767 root = (xmlNodePtr)share;
781 * rest is hung off of the share.
783 resource = find_resource_by_index(share, sectype);
821 /* iterate over the share pg properties */
1026 * share optionset
1492 * check_resource(share)
1494 * Check to see if share has any persistent resources. We don't want
1498 check_resource(sa_share_t share)
1503 for (resource = sa_get_share_resource(share, NULL);
1526 sa_set_resource_property(scfutilhandle_t *handle, sa_share_t share)
1539 if (check_resource(share) == B_FALSE)
1558 for (resource = sa_get_share_resource(share, NULL);
1646 * sa_commit_share(handle, group, share)
1648 * Commit this share to the repository.
1653 sa_commit_share(scfutilhandle_t *handle, sa_group_t group, sa_share_t share)
1691 sharename = sa_get_share_attr(share, "id");
1696 (void) xmlSetProp((xmlNodePtr)share, (xmlChar *)"id",
1703 * Have a share name allocated so create a pgroup for
1705 * to avoid creating a share pgroup that doesn't have
1707 * region of creating the share pgroup and props.
1720 * properties that define this share. They may
1726 name = sa_get_share_attr(share, "path");
1730 * for a share to exist.
1740 name = sa_get_share_attr(share, "drive-letter");
1749 name = sa_get_share_attr(share, "exclude");
1765 ret = sa_set_resource_property(handle, share);
1769 description = sa_get_share_description(share);
1810 * remove_resources(handle, share, shareid)
1812 * If the share has resources, remove all of them and their
1816 remove_resources(scfutilhandle_t *handle, sa_share_t share, char *shareid)
1831 for (resource = sa_get_share_resource(share, NULL);
1853 * sa_delete_share(handle, group, share)
1855 * Remove the specified share from the group (and service instance).
1859 sa_delete_share(scfutilhandle_t *handle, sa_group_t group, sa_share_t share)
1876 shareid = sa_get_share_attr(share, "id");
1883 /* If a share has resources, remove them */
1884 ret = remove_resources(handle, share, shareid);
1885 /* If a share has properties, remove them */
1887 for (opt = sa_get_optionset(share, NULL);
1904 * If a share has security/negotiable
1907 for (sec = sa_get_security(share, NULL, NULL);