Lines Matching defs:share

83  * for share management.
547 * check to see if group/share is persistent.
608 * specified group. Group could be a share for full legacy support.
689 * this is not a persistent share, don't commit to the
908 * In order to share, we need to set all the possible general options
1325 * to those used by "share" are done. this function does one property
1581 "share complete, however failed to lock %s "
1589 "share complete, however could not deactivate "
1601 "share complete, however could not remove matching "
1612 "share complete, however could not deactivate matching "
1628 "share complete, however could not add %s to %s\n"),
1657 "share complete, however could not lock %s for "
1665 "share complete, however could not "
1682 * subgroups simpler. Returns true if there is a share with public.
1688 sa_share_t share;
1693 for (share = sa_get_share(group, NULL); share != NULL;
1694 share = sa_get_next_share(share)) {
1695 if (share == skipshare)
1698 opt = sa_get_optionset(share, "nfs");
1704 shared = sa_get_share_attr(share, "shared");
1719 * check to see if public option is set on any other share than the
1763 * implementation that it is to enable the share. This entails
1769 nfs_enable_share(sa_share_t share)
1788 path = sa_get_share_attr(share, "path");
1799 opt = sa_get_derived_optionset(share, "nfs", 1);
1800 secoptlist = (sa_optionset_t)sa_get_all_security_types(share, "nfs", 1);
1828 * no other share has it set. If it is already used, fail.
1831 handle = sa_find_group_handle((sa_group_t)share);
1832 if (export.ex_flags & EX_PUBLIC && public_exists(handle, share)) {
1834 "NFS: Cannot share more than one file "
1877 * don't share it.
1882 "NFS: Cannot share %s: "
1887 share, sectype, "nfs", 1);
1904 /* now add the share to the internal tables */
1935 "NFS: Cannot share remote "
1950 (void) sa_sharetab_fill_zfs(share, &sh, "nfs");
1951 err = sa_share_zfs(share, NULL, path, &sh,
1968 "NFS: Cannot share filesystems "
1975 "NFS: Cannot share file systems "
1991 (void) sa_update_sharetab(share, "nfs");
2039 * nfs_disable_share(share, path)
2041 * Unshare the specified share. Note that "path" is the same path as
2042 * what is in the "share" object. It is passed in to avoid an
2047 nfs_disable_share(sa_share_t share, char *path)
2059 * If the share is in a ZFS group we need to handle it
2061 * enough since we may be in a legacy share case.
2063 parent = sa_get_parent_group(share);
2073 err = sa_share_zfs(share, NULL, path, &sh,
2105 handle = sa_find_group_handle((sa_group_t)share);
2212 if (optdefs[optindex].share && parent_group != NULL &&