Lines Matching defs:share
152 * Add the mountpoint to the share path.
153 * This is called after the share has been read from disk
154 * since share paths are stored relative to the mountpoint
156 * share has been created.
158 * The mountpoint itself is also added to the share in the
162 sazfs_add_mntpnt(nvlist_t *share, const char *mntpnt)
171 * filesystem plugin also set the expected absolute share path.
173 if (sa_share_get_mntpnt(share) != NULL)
176 if ((sh_path = sa_share_get_path(share)) == NULL)
185 * add mountpoint property to share
187 if ((rc = sa_share_set_mntpnt(share, new_path)) != SA_OK)
191 * store the full path to share
196 if ((rc = sa_share_set_path(share, new_path)) != SA_OK)
203 sa_zfs_share_write(libshare_handle_t *shdl, nvlist_t *share, boolean_t persist)
211 rc = zfssa_share_storage_write(zfs_hdl, share, persist);
234 * So prefix mountpoint to beginning of share path and update share.
237 salog_error(rc, "libshare_zfs: error adding mntpnt to share %s",
285 * So prefix mountpoint to beginning of share path and update share.
292 salog_error(rc, "libshare_zfs: error adding mntpnt to share %s",
293 sh_name == NULL ? "<invalid share>" : sh_name);
342 "error removing share file for %s: %s",
589 * If a sharing protocol is not enabled for a given share, its tag (and error
683 nvpair_t *share = NULL;
706 while ((share = nvlist_next_nvpair(notifications, share)) != NULL) {
707 const char *sharename = nvpair_name(share);
712 if (nvpair_value_nvlist(share, &protos) != 0) {