Lines Matching defs:share
31 #include <sharefs/share.h>
50 * Sends the given share definition to libshare
57 nvlist_t *share;
67 if ((status = smb_share_mklist(shdl, si, &share)) != ERROR_SUCCESS) {
72 rc = sa_share_publish(shdl, share, SA_PROT_SMB, 0, B_FALSE);
74 sa_share_free(share);
81 * Asks smbsrv to remove the specified share
88 nvlist_t *share;
104 if ((status = smb_share_mklist(shdl, &si, &share)) != ERROR_SUCCESS) {
110 rc = sa_share_unpublish(shdl, share, SA_PROT_SMB, 0);
112 sa_share_free(share);
126 * Return B_TRUE if the share exists. Otherwise return B_FALSE.
135 * Lookup a share by path. The path can be the empty string.
137 * If the share-info pointer is non-null, the share data is returned in si.
139 * If the share-info is null, the share is still looked up and the result
152 * Lookup a share by name.
154 * If the share-info pointer is non-null, the share data is returned in si.
156 * If the share-info is null, the share is still looked up and the result
157 * indicates whether or not a share with the specified name exists.
189 * one) encountered in the share flags.
205 * Map a client-side caching (CSC) option to the appropriate share
281 * structure to the nvlist share format.
287 nvlist_t *share;
295 if ((share = sa_share_alloc(si->shr_name, si->shr_path)) == NULL)
300 * add global share properties to share nvlist
301 * start with share description
304 if ((rc = sa_share_set_desc(share, si->shr_cmnt))
306 sa_share_free(share);
315 sa_share_free(share);
324 sa_share_free(share);
329 rc = sa_share_set_mntpnt(share, mntpnt);
332 sa_share_free(share);
340 if ((rc = sa_share_set_def_proto(share, SA_PROT_SMB))
342 sa_share_free(share);
346 if ((props = sa_share_get_proto(share, SA_PROT_SMB)) == NULL) {
347 sa_share_free(share);
365 rc |= sa_share_set_transient(share);
389 sa_share_free(share);
394 *ret_share = share;