Lines Matching defs:share

84  * zfs file share info.
519 * zfs_construct_resource(share, name, base, dataset)
521 * Add a resource to the share using name as a template. If name ==
526 zfs_construct_resource(sa_share_t share, char *dataset)
533 (void) sa_add_resource(share, buff, SA_SHARE_TRANSIENT, &ret);
539 * handle case of inherited share{nfs,smb}. Pulled out of sa_get_zfs_shares
543 zfs_inherited(sa_handle_t handle, sa_share_t share, char *sourcestr,
562 * We may need the first share for resource
566 if (share == NULL)
567 share = _sa_add_share(group, mountpoint,
573 * share.
575 if (share != NULL && doshopt == SA_PROP_SHARE_ONLY) {
579 set_node_attr(share, "dataset", dataset);
580 err = sa_parse_legacy_options(share, options,
582 set_node_attr(share, "dataset", NULL);
589 if (share != NULL && features & SA_FEATURE_RESOURCE) {
591 * We have a share and the protocol requires
596 resource = sa_get_share_resource(share, NULL);
598 zfs_construct_resource(share, dataset);
608 * zfs_notinherited(group, share, mountpoint, shareopts, proto, dataset,
614 * property, etc. to the specific share.
617 zfs_notinherited(sa_group_t group, sa_share_t share, char *mountpoint,
625 if (share == NULL)
626 share = _sa_add_share(group, mountpoint, SA_SHARE_TRANSIENT,
642 * share.
646 err = sa_parse_legacy_options(share,
651 /* Unmark the share's changed state */
652 set_node_attr(share, "changed", NULL);
655 if (share != NULL && features & SA_FEATURE_RESOURCE) {
657 * We have a share and the protocol requires that at
661 resource = sa_get_share_resource(share, NULL);
663 zfs_construct_resource(share, dataset);
688 * zfs_process_share(handle, share, mountpoint, proto, source,
695 sa_zfs_process_share(sa_handle_t handle, sa_group_t group, sa_share_t share,
702 err = zfs_inherited(handle, share, sourcestr, shareopts,
719 * Add share with local opts via zfs_notinherited.
721 err = zfs_notinherited(group, share, mountpoint, shareopts,
754 sa_share_t share;
832 * non-ZFS share. We want to remove the share from its
835 share = sa_find_share(handle, mountpoint);
836 if (share != NULL &&
838 err = sa_remove_share(share);
839 share = NULL;
844 * determine what to do with the share.
861 share, mountpoint, "nfs",
864 share = sa_find_share(handle, mountpoint);
868 share, mountpoint, "smb",
893 share, mountpoint, "nfs",
896 share = sa_find_share(handle, mountpoint);
900 share, mountpoint, "smb",
973 * add_resources(share, opt)
979 add_resources(sa_share_t share, char *opt)
989 for (resource = sa_get_share_resource(share, NULL);
1035 sa_share_t share;
1051 share = sa_get_share(group, NULL);
1052 opts = sa_proto_legacy_format("smb", share, 1);
1057 newopt = add_resources(opts, share);
1092 * call back to ZFS to update the share if necessary.
1161 "%s set share%s=%s %s",
1167 "%s set share%s=on %s",
1242 sa_sharetab_fill_zfs(sa_share_t share, share_t *sh, char *proto)
1248 path = sa_get_share_attr(share, "path");
1251 (void) sa_fillshare(share, proto, sh);
1264 sa_share_zfs(sa_share_t share, sa_resource_t resource, char *path, share_t *sh,
1279 if ((group = sa_get_parent_group(share)) == NULL) {
1491 * already existing on the share. The properties set via sa_zfs_sprint_new_prop
1529 * Sets the share properties on a ZFS share. For now, this method sets only
1533 * set on the "sharesmb" property of a ZFS share. This name-value string is