Lines Matching +defs:val +defs:from
381 * case the share is removed from the cache.
465 * Removes the specified share from cache, removes it from AD
955 * Derive the real path for a share from the path provided by a client.
1411 * Delete the specified share from the cache.
1439 * Load shares from sharemgr
1524 * Load a share definition from sharemgr and add it to the cache.
1568 char *val = NULL;
1572 val = sa_get_property_attr(prop, "value");
1574 return (val);
1578 * Read the specified share information from sharemgr and return
1581 * Shares read from sharemgr are marked as permanent/persistent.
1587 char *val = NULL;
1607 val = sa_get_resource_description(resource);
1608 if (val == NULL)
1609 val = sa_get_share_description(share);
1611 if (val != NULL) {
1612 (void) strlcpy(si->shr_cmnt, val, sizeof (si->shr_cmnt));
1613 sa_free_share_description(val);
1620 val = smb_shr_sa_getprop(opts, SHOPT_AD_CONTAINER);
1621 if (val != NULL) {
1622 (void) strlcpy(si->shr_container, val,
1624 free(val);
1627 val = smb_shr_sa_getprop(opts, SHOPT_CATIA);
1628 if (val != NULL) {
1629 smb_shr_sa_setflag(val, si, SMB_SHRF_CATIA);
1630 free(val);
1633 val = smb_shr_sa_getprop(opts, SHOPT_ABE);
1634 if (val != NULL) {
1635 smb_shr_sa_setflag(val, si, SMB_SHRF_ABE);
1636 free(val);
1639 val = smb_shr_sa_getprop(opts, SHOPT_GUEST);
1640 if (val != NULL) {
1641 smb_shr_sa_setflag(val, si, SMB_SHRF_GUEST_OK);
1642 free(val);
1645 val = smb_shr_sa_getprop(opts, SHOPT_DFSROOT);
1646 if (val != NULL) {
1647 smb_shr_sa_setflag(val, si, SMB_SHRF_DFSROOT);
1648 free(val);
1651 val = smb_shr_sa_getprop(opts, SHOPT_CSC);
1652 if (val != NULL) {
1653 smb_shr_sa_csc_option(val, si);
1654 free(val);
1657 val = smb_shr_sa_getprop(opts, SHOPT_NONE);
1658 if (val != NULL) {
1659 (void) strlcpy(si->shr_access_none, val,
1661 free(val);
1665 val = smb_shr_sa_getprop(opts, SHOPT_RO);
1666 if (val != NULL) {
1667 (void) strlcpy(si->shr_access_ro, val,
1669 free(val);
1673 val = smb_shr_sa_getprop(opts, SHOPT_RW);
1674 if (val != NULL) {
1675 (void) strlcpy(si->shr_access_rw, val,
1677 free(val);
1982 * Remove items from the specified queue and [un]publish them.
2011 * Flush all remaining items from the specified list/queue.
2108 smb_shr_zfs_rename(smb_share_t *from, smb_share_t *to)
2115 if (smb_getdataset(from->shr_path, dataset, MAXPATHLEN) != 0)
2127 ret = zfs_smb_acl_rename(libhd, dataset, from->shr_path,
2128 from->shr_name, to->shr_name);
2131 from->shr_name, strerror(errno));
2205 /* get the filename of the command from the path */
2351 * Calling _exit() prevents parent process from getting SIGTERM/SIGINT