Lines Matching defs:share

89 /* share property check routines */
261 #define SA_PREFIX_SHARE_SMB "share.smb."
761 /* Verify the name starts with "share.smb." */
765 assert(valp - valstart == 5 && strncmp(valstart, "share", 5) == 0);
776 /* Global property share.smb.prop */
802 if (nvlist_lookup_string(props, "share.smb.raw", &strval) == 0) {
824 if (strcmp(namep, "share.smb") == 0)
895 (void) snprintf(prop, sizeof (prop), "share.smb.%s",
936 * Set the default protocol properties on the share.
942 sa_smb_share_set_def_proto(nvlist_t *share)
952 if ((rc = sa_share_set_proto(share, SA_PROT_SMB, prot_nvl)) != SA_OK)
979 sa_smb_share_validate(libshare_handle_t *shdl, nvlist_t *share,
994 * do not allow a share in a non-global zone
1002 sh_name = sa_share_get_name(share);
1017 * get protocol property list from share
1019 prot_nvl = sa_share_get_proto(share, SA_PROT_SMB);
1270 sa_smb_share_publish(nvlist_t *share, int wait)
1278 if ((sh_name = sa_share_get_name(share)) == NULL) {
1284 if ((sh_path = sa_share_get_path(share)) == NULL) {
1297 * SMB expects a list of shares, so allocate a list and add the share
1300 (nvlist_add_nvlist(sh_list, sh_name, share) != 0)) {
1312 "publishing duplicate share name",
1317 "error publishing share",
1331 sa_smb_share_unpublish(nvlist_t *share, int wait)
1338 if ((sh_name = sa_share_get_name(share)) == NULL) {
1344 sh_path = sa_share_get_path(share);
1350 * SMB expects a list of shares, so allocate a list and add the share
1353 (nvlist_add_nvlist(sh_list, sh_name, share) != 0)) {
1364 "error unpublishing share",
1381 nvlist_t *share;
1384 if ((share = sa_share_alloc(sh_name, sh_path)) == NULL) {
1386 "error unpublishing share",
1392 rc = sa_smb_share_unpublish(share, wait);
1393 sa_share_free(share);