Lines Matching defs:share
45 #include <sharefs/share.h>
102 * order to remove a share after it has been
208 * This share has a name conflict with an existing share.
212 * If a unique name is found, update the share and write to disk.
215 sa_resolve_share_name_conflict(libshare_handle_t *shdl, nvlist_t *share,
231 if ((sh_name = sa_share_get_name(share)) == NULL)
233 if ((sh_path = sa_share_get_path(share)) == NULL)
239 if (sa_share_get_proto(share, p))
270 if ((rc = sa_share_set_name(share, new_name)) != SA_OK) {
280 (rc = safs_share_write(shdl, share, B_TRUE)) == SA_OK) {
281 VERIFY((sh_path = sa_share_get_path(share)) != NULL);
333 * This is used to construct a valid share name from a path.
409 * This routine will create a default share name from the given path.
410 * It will either return a new share with name and path set or
411 * an existing share with the default share name for the specified path.
415 nvlist_t **share, boolean_t *new)
426 assert(share != NULL);
433 * Check for the existance of a share with the new name.
434 * If a share exists, is it for this path?
435 * If so return existing share else
437 * If no share is found, create a new share and set the
445 * this share is for a different path
459 * share does not exist, create new one
472 *share = shr;
570 return (dgettext(TEXT_DOMAIN, "share not found"));
572 return (dgettext(TEXT_DOMAIN, "share name exists"));
583 return (dgettext(TEXT_DOMAIN, "missing share name"));
585 return (dgettext(TEXT_DOMAIN, "missing share path"));
587 return (dgettext(TEXT_DOMAIN, "missing share description"));
589 return (dgettext(TEXT_DOMAIN, "missing share protocol"));
594 "share not configured for protocol"));
604 return (dgettext(TEXT_DOMAIN, "invalid share"));
606 return (dgettext(TEXT_DOMAIN, "invalid share name"));
608 return (dgettext(TEXT_DOMAIN, "invalid share path"));
610 return (dgettext(TEXT_DOMAIN, "invalid share mntpnt"));
646 return (dgettext(TEXT_DOMAIN, "no share directory"));
648 return (dgettext(TEXT_DOMAIN, "share path not found"));
689 return (dgettext(TEXT_DOMAIN, "error setting share ACL"));
691 return (dgettext(TEXT_DOMAIN, "conflict with another share"));