Lines Matching defs:share
169 * share and save it.
209 * List tree connections made to a share on this server or all tree
228 * NERR_NetNameNotFound The share qualifier cannot be found.
454 * The qualifier is a string that specifies a share name or computer name
455 * for the connections of interest. If it is a share name then all the
456 * connections made to that share name are listed. If it is a computer
1055 * This call is made by SrvMgr to set share information.
1176 * connections to a share.
1957 * Add a new share. Only power users groups can manage shares.
2054 * Derive the real path for a share from the path provided by a client.
2061 * the smb_share_t structure of the share.
2119 * Level 0: share names.
2120 * Level 1: share name, share type and comment field.
2137 * Level 0: share names.
2138 * Level 1: share name, share type and comment field.
2325 * Build the levels 0, 1, 2, 501 and 502 share information. This function
2326 * is called by the various NetShareEnum levels for each share. If
2327 * we cannot build the share data for some reason, we return an error
2471 * Delete a share. Only members of the Administrators, Server Operators
2543 * Check whether or not there is a restriction on a share. Restricted
2545 * administration share names are restricted: C$, D$ etc. Returns B_TRUE
2546 * if the share is restricted. Otherwise B_FALSE is returned to indicate
2570 * Check whether or not access to the share should be restricted to
2575 * Returns B_TRUE if the shares is an admin share. Otherwise B_FALSE
2622 * Stores the given share in sharemgr
2628 nvlist_t *share;
2642 if (sa_share_read(shdl, mntpnt, sharename, &share) != SA_OK) {
2644 if ((share = sa_share_alloc(sharename, path)) == NULL) {
2652 ((rc = sa_share_set_desc(share, cmnt)) != SA_OK))
2655 if (sa_share_get_proto(share, SA_PROT_SMB) == NULL) {
2656 if ((rc = sa_share_set_def_proto(share, SA_PROT_SMB)) != SA_OK)
2660 if ((rc = sa_share_validate(shdl, share, valflags, errbuf,
2664 if ((rc = sa_share_write(shdl, share, B_TRUE, B_TRUE)) != SA_OK)
2671 sa_share_free(share);
2678 * Removes the share via libshare
2680 * Remove the SMB properties from the share.
2681 * If there are no other protocols enabled for this share,
2688 nvlist_t *share;
2700 rc = sa_share_read(shdl, mntpnt, sharename, &share);
2707 (void) sa_share_rem_proto(share, SA_PROT_SMB);
2708 if (sa_share_proto_count(share) == 0)
2711 rc = sa_share_write(shdl, share, B_TRUE, B_TRUE);
2713 sa_share_free(share);
2721 * Update the share information.
2727 nvlist_t *share;
2741 rc = sa_share_read(shdl, mntpnt, si->shr_name, &share);
2750 * remove share description if it exists
2753 (void) sa_share_rem_desc(share);
2762 rc = sa_share_set_desc(share, info->nss_comment);
2764 sa_share_free(share);
2776 * info contains new name, update share
2779 rc = sa_share_set_name(share, info->nss_netname);
2781 sa_share_free(share);
2790 * share has been updated, save and publish
2792 if ((rc = sa_share_write(shdl, share, B_TRUE,
2794 sa_share_free(share);
2801 * share was renamed, unpublish and remove old share
2809 sa_share_free(share);
2816 * Sets the share properties.
2818 * Updates the smb protocol properties of the share.
2826 nvlist_t *share;
2846 rc = sa_share_read(shdl, mntpnt, si->shr_name, &share);
2853 if ((proplist = sa_share_get_proto(share, SA_PROT_SMB)) == NULL) {
2854 sa_share_free(share);
2881 * validate and update share
2883 rc = sa_share_validate(shdl, share, valflags, errbuf,
2886 rc = sa_share_write(shdl, share, B_TRUE, B_TRUE);
2890 sa_share_free(share);