Searched defs:share (Results 1 - 25 of 27) sorted by relevance

12

/osnet-11/usr/src/lib/libast/common/sfio/
H A Dsfrd.c246 { int share = f->flags&SF_SHARE; local
258 else f->flags |= share;
/osnet-11/usr/src/lib/libshare/common/
H A Dlibshare_cache.c58 * Add share to cache
61 * share : pointer to nvlist containing share properties
64 * SA_OK : share added successfully
65 * SA_DUPLICATE_NAME : share with same name already exists in cache
70 sacache_share_add(nvlist_t *share) argument
78 return (ops->sac_share_add(share));
82 * Update a share in the cache
85 * share : pointer to nvlist containing share propertie
94 sacache_share_update(nvlist_t *share) argument
171 sacache_share_lookup(const char *sh_name, const char *sh_path, sa_proto_t proto, nvlist_t **share) argument
240 sacache_share_find_next(void *hdl, nvlist_t **share) argument
330 sacache_share_ds_find_get(void *hdl, nvlist_t **share) argument
[all...]
H A Dlibshare_fs.c293 safs_share_write(libshare_handle_t *shdl, nvlist_t *share, boolean_t persist) argument
299 if ((path = sa_share_get_path(share)) == NULL)
309 return (ops->saf_share_write(shdl, share, persist));
314 const char *sh_name, nvlist_t **share)
326 return (ops->saf_share_read(shdl, fs_name, sh_name, share));
347 nvlist_t **share)
359 return (ops->saf_share_read_next(shdl, srhp, share));
313 safs_share_read(libshare_handle_t *shdl, const char *fs_name, const char *sh_name, nvlist_t **share) argument
346 safs_share_read_next(libshare_handle_t *shdl, sa_read_hdl_t *srhp, nvlist_t **share) argument
H A Dlibshare_proto.c107 * to add the default protocol properties to the share.
110 saproto_share_set_def_proto(sa_proto_t proto, nvlist_t *share) argument
118 return (ops->sap_share_set_def_proto(share));
140 saproto_share_validate(libshare_handle_t *shdl, nvlist_t *share, argument
154 return (ops->sap_share_validate(shdl, share, flags,
179 * Publish the share for the specified protocol. proto must be
187 saproto_share_publish(nvlist_t *share, sa_proto_t proto, int wait) argument
195 return (ops->sap_share_publish(share, wait));
201 * Unpublish the share for the specified protocol. proto must be
207 saproto_share_unpublish(nvlist_t *share, sa_proto_ argument
[all...]
H A Dlibshare_util.c45 #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, argument
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_nam
414 sa_share_from_path(libshare_handle_t *shdl, const char *sh_path, nvlist_t **share, boolean_t *new) argument
[all...]
H A Dlibshare_upgrade.c34 * The group properties are inherited by shares and the share properties are
37 * We start out by parsing out the SMF configuration of the share into a
38 * nvlist format. We then merge the group and share properties
39 * into the newly defined nvlist share for libshare v2.
44 * Consider a share defined in libshare v1 format. The share belongs to group
46 * /export/home and it has "none=*" property setting. The share is
55 * Format of the share in SMF configuration
58 * Group names start with "optionset" and share and resource names
59 * start with "S-". The share (wit
459 sa_upgrade_extract_resource(nvlist_t *share, char *path, char *valuestr) argument
519 nvlist_t *node, *pnode, *share, *resource; local
658 nvlist_t *share; local
1299 nvlist_t *share = NULL; local
1408 sa_upgrade_sharing_set(libshare_handle_t *shdl, nvlist_t *share, char *gname) argument
1479 nvlist_t *share = NULL; local
[all...]
H A Dlibshare.c40 * properties including: name=sharename, desc="share description",
41 * path=/path/to/share, and in some cases mntpnt=/path/to/mountpoint. In
61 * - an order-dependent text representation as used in the share(1M) command,
62 * and in "zfs get/set share":
65 * the separate comments indicate nesting. E.g. "share.nfs.sec.dh.window=3"
126 * The global sharing properties as they show up in the share nvlist format.
145 "share.name",
146 "share.path",
147 "share.desc",
148 "share
354 sa_share_parse(const char *propstr, int unset, nvlist_t **share, char *errbuf, size_t buflen) argument
729 nvlist_t *share; local
804 sa_share_validate(libshare_handle_t *shdl, nvlist_t *share, sa_validate_flags_t flags, char *errbuf, size_t buflen) argument
1092 sa_share_notify_get_mntpnt(libshare_handle_t *shdl, nvlist_t *share, char *mp, size_t mplen, sa_fs_t *fstypep, const char **mntpntp) argument
1117 sa_share_notify(libshare_handle_t *shdl, nvlist_t *share, sa_notify_op_t notify_op, nvlist_t *return_codes) argument
1146 sa_publish_notify(libshare_handle_t *shdl, nvlist_t *share, sa_proto_t proto, int rc) argument
1164 sa_share_publish(libshare_handle_t *shdl, nvlist_t *share, sa_proto_t proto, int wait, boolean_t check_rename) argument
1261 sa_share_unpublish(libshare_handle_t *shdl, nvlist_t *share, sa_proto_t proto, int wait) argument
1364 sa_share_list_add(nvlist_t **share_list, nvlist_t *share, const char *sh_name, int proto_cnt, boolean_t publish) argument
1515 nvlist_t *share; local
1568 nvlist_t *share; local
1704 sa_share_check_name_conflict(libshare_handle_t *shdl, nvlist_t *share, sa_proto_t proto, nvlist_t **share_list, int proto_cnt) argument
1780 nvlist_t *share; local
1918 nvlist_t *share; local
1991 sa_share_write(libshare_handle_t *shdl, nvlist_t *share, boolean_t persist, boolean_t publish) argument
2064 sa_share_read_default(const char *sh_path, const char *basename, sa_proto_t proto, nvlist_t **share) argument
2112 sa_share_read_from_props(const char *propstr, const char *sh_path, const char *basename, sa_proto_t proto, nvlist_t **share, char *errbuf, size_t buflen) argument
2337 nvlist_t *share; local
2431 sa_share_lookup(const char *sh_name, const char *sh_path, sa_proto_t proto, nvlist_t **share) argument
2456 sa_share_read(libshare_handle_t *shdl, const char *mntpnt, const char *sh_name, nvlist_t **share) argument
2670 sa_share_read_next(libshare_handle_t *shdl, void *hdl, nvlist_t **share) argument
2844 sa_share_find_next(void *hdl, nvlist_t **share) argument
2951 sa_share_set_def_proto(nvlist_t *share, sa_proto_t proto) argument
3107 sa_share_parse_proplist(nvlist_t *props_nvl, nvlist_t **share, sa_validate_flags_t flags, char *errbuf, size_t buflen) argument
3443 sa_share_to_str(nvlist_t *share) argument
3588 sa_share_proplist_from_share(nvlist_t *share, sa_share_props_t **propsp, sa_proto_t *retprotos) argument
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Opcode/
H A DSafe.pm55 # utf8->SWASHNEW (via perl's utf8.c). That will fail unless we share the
73 # share *_ and functions defined in universal.c
74 # Don't share stuff like *UNIVERSAL:: otherwise code from the
162 # We must share $_ and @_ with the compartment or else ops such
165 # for reasons I don't completely understand, we need to share
266 sub share { subroutine
285 # catch some $safe->share($var) errors:
296 : croak(qq(Can't share "$type$var" of unknown type));
484 variables into (or I<share> variables with) the compartment's namespace
522 $cpt->share('
[all...]
/osnet-11/usr/src/lib/libshare_plugins/cache/
H A Dlibshare_cache.c34 #include <sharefs/share.h>
40 * The cache plugin library interface with the share cache in
119 sa_cache_share_add(nvlist_t *share) argument
121 NOTE(ARGUNUSED(share))
127 sa_cache_share_update(nvlist_t *share) argument
129 NOTE(ARGUNUSED(share))
150 nvlist_t **share)
159 if (share == NULL)
184 err = nvlist_unpack(ioc->share, ioc->shrlen, share,
149 sa_cache_lookup(const char *sh_name, const char *sh_path, sa_proto_t proto, nvlist_t **share) argument
253 sa_cache_find_next(void *hdl, nvlist_t **share) argument
[all...]
/osnet-11/usr/src/lib/libsmb/common/
H A Dsmb_share.c31 #include <sharefs/share.h>
50 * Sends the given share definition to libshare
57 nvlist_t *share; local
67 if ((status = smb_share_mklist(shdl, si, &share)) != ERROR_SUCCESS) {
72 rc = sa_share_publish(shdl, share, SA_PROT_SMB, 0, B_FALSE);
74 sa_share_free(share);
81 * Asks smbsrv to remove the specified share
88 nvlist_t *share; local
104 if ((status = smb_share_mklist(shdl, &si, &share)) != ERROR_SUCCESS) {
110 rc = sa_share_unpublish(shdl, share, SA_PROT_SM
287 nvlist_t *share; local
[all...]
H A Dsmb_kmod.c235 smb_share_t *share; local
266 share = &item->nsi_un.nsi_share;
267 smb_share_free(share);
293 smb_share_t *share; local
333 share = &items->nsi_un.nsi_share;
334 rc = smb_share_decode(share, data, len, &nbytes);
398 * Lookup a share.
400 * If the share-info pointer is non-null, the share data is returned in si.
402 * If the share
[all...]
/osnet-11/usr/src/lib/libshare_plugins/zfs/
H A Dlibshare_zfs.c152 * 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) argument
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
203 sa_zfs_share_write(libshare_handle_t *shdl, nvlist_t *share, boolean_t persist) argument
683 nvpair_t *share = NULL; local
[all...]
/osnet-11/usr/src/lib/libshare_plugins/legacy/
H A Dlibshare_legacy.c39 #include <sharefs/share.h>
246 * some valid SMB share names contain characters illegal in SMF. This
420 sa_legacy_share_write(libshare_handle_t *shdl, nvlist_t *share, argument
429 if ((sh_name = sa_share_get_name(share)) == NULL) {
435 if (nvlist_pack(share, &bufp, &buflen, NV_ENCODE_XDR, 0) != 0) {
449 "error writing share '%s': %s",
465 const char *sh_name, nvlist_t **share)
506 *share = shareval;
566 nvlist_t **share)
605 nvlistsize, share,
464 sa_legacy_share_read(libshare_handle_t *shdl, const char *fs_name, const char *sh_name, nvlist_t **share) argument
565 sa_legacy_share_read_next(libshare_handle_t *shdl, sa_read_hdl_t *hdl, nvlist_t **share) argument
[all...]
/osnet-11/usr/src/lib/libsmbfs/common/
H A Dsmbfs_ctx.c301 * "//host[/share[/path]]"
309 char *host, *share, *path; local
338 /* Find the share part, if any. */
339 share = strchr(p, '/');
340 if (share)
341 *share = '\0';
356 if (share) {
358 *share = '/';
359 p = share + 1;
365 (void) smbfs_unpercent(p); /* share componen
659 smbfs_ctx_setshare(struct smb_ctx *ctx, const char *share, int stype) argument
[all...]
/osnet-11/usr/src/lib/libntsvcs/common/
H A Dnetdfs.c193 if (param->server == NULL || param->share == NULL) {
225 (const char *)param->server, (const char *)param->share,
254 /* both server and share must be NULL or non-NULL */
255 if ((param->server == NULL && param->share != NULL) ||
256 (param->server != NULL && param->share == NULL)) {
270 (const char *)param->server, (const char *)param->share,
294 /* both server and share must be NULL or non-NULL */
295 if ((param->server == NULL && param->share != NULL) ||
296 (param->server != NULL && param->share == NULL)) {
326 (const char *)param->server, (const char *)param->share);
694 const char *share = (const char *)param->share; local
720 const char *share = (const char *)param->share; local
[all...]
H A Ddfs.c63 * ns_path The filesystem path of the root share.
240 * (root share) if a namespace hasn't already been exported.
245 char *share = arg; local
252 if (smb_strcasecmp(dfsns.ns_name, share, 0) != 0) {
256 share, dfs_svc_name(dfsns.ns_type), dfsns.ns_name);
259 free(share);
263 if (smb_share_lookup(share, &si) != NERR_Success) {
265 free(share);
272 free(share);
280 free(share);
559 dfs_ns_addlink(const char *name, dfs_path_t *dfspath, const char *server, const char *share, const char *cmnt, uint32_t flags, uint32_t ns_type) argument
610 dfs_ns_removelink(const char *name, dfs_path_t *dfspath, const char *server, const char *share, uint32_t ns_type) argument
897 dfs_link_add(const char *path, const char *server, const char *share, const char *cmnt, uint32_t flags, boolean_t *newlink, uint32_t ns_type) argument
995 dfs_link_remove(const char *path, const char *server, const char *share, uint32_t ns_type) argument
1701 dfs_target_init(dfs_target_t *t, const char *srv, const char *share, uint32_t state) argument
1717 dfs_target_find(dfs_target_t *targets, uint32_t ntargets, const char *server, const char *share) argument
[all...]
H A Dsrvsvc_svc.c169 * share and save it.
209 * List tree connections made to a share on this server or all tree
228 * NERR_NetNameNotFound The share qualifier cannot be found.
454 * The qualifier is a string that specifies a share name or computer name
455 * for the connections of interest. If it is a share name then all the
456 * connections made to that share name are listed. If it is a computer
1055 * This call is made by SrvMgr to set share information.
1176 * connections to a share.
1957 * Add a new share. Only power users groups can manage shares.
2054 * Derive the real path for a share fro
2628 nvlist_t *share; local
2688 nvlist_t *share; local
2727 nvlist_t *share; local
2826 nvlist_t *share; local
[all...]
/osnet-11/usr/src/lib/libast/common/comp/
H A Domitted.c885 DWORD share = FILE_SHARE_DELETE; local
/osnet-11/usr/src/lib/libshare_plugins/smb/
H A Dlibshare_smb.c89 /* share property check routines */
261 #define SA_PREFIX_SHARE_SMB "share.smb."
761 /* Verify the name starts with "share.smb." */
765 assert(valp - valstart == 5 && strncmp(valstart, "share", 5) == 0);
776 /* Global property share.smb.prop */
802 if (nvlist_lookup_string(props, "share.smb.raw", &strval) == 0) {
824 if (strcmp(namep, "share.smb") == 0)
895 (void) snprintf(prop, sizeof (prop), "share.smb.%s",
936 * Set the default protocol properties on the share.
942 sa_smb_share_set_def_proto(nvlist_t *share) argument
979 sa_smb_share_validate(libshare_handle_t *shdl, nvlist_t *share, sa_validate_flags_t flags, char *errbuf, size_t buflen) argument
1270 sa_smb_share_publish(nvlist_t *share, int wait) argument
1331 sa_smb_share_unpublish(nvlist_t *share, int wait) argument
[all...]
/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_crypto.c816 zfs_key_load(zfs_handle_t *zhp, boolean_t mount, boolean_t share, argument
906 if (ret == 0 && share) {
H A Dlibzfs_mount.c57 * mount/unmount and share/unshare all datasets within pool:
90 * The share protocols table must be in the same order as the zfs_share_prot_t
127 nvlist_t *share; local
137 while (!found && sa_share_find_next(sa_hdl, &share) == SA_OK) {
138 status = sa_share_get_status(share);
141 sa_share_free(share);
795 dgettext(TEXT_DOMAIN, "cannot share '%s'"),
901 /* Any share prop will do -- it is just to gather the right FSs */
1060 * Mount and share all datasets within the given pool. This assumes that no
1065 * and/or share eac
[all...]
H A Dlibzfs.h92 EZFS_SHAREFAILED, /* share failed */
314 ZPROP_SHOWTYPE_GET /* properties share a single value column */
333 * Bitmask of zfs_type_t values {poo||fs|snap|vol|share} for which this
980 int share : 1; /* publish the share */ member in struct:shareflags
981 int validate : 1; /* validate the share */
982 int received : 1; /* share is received from a ZFS send stream */
1005 * Miscellaneous share routines.
1027 * Protocol-specific share support functions.
1106 * Management interfaces for SMB/NFS share resourc
[all...]
H A Dlibzfs_sendrecv.c462 * Given the GUID of a snapshot or share, find its containing filesystem and
650 /* don't send the automatic share */
3426 nvpair_t *share = NULL; local
3432 while ((share = nvlist_next_nvpair(shares,
3433 share)) != NULL) {
3442 * See if the share already exists.
3444 sharename = nvpair_name(share);
3454 sce = nvpair_value_nvlist(share, &shareprops);
3465 * Can't share until the received datasets are
3468 shareflags.share
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dxec.c1173 volatile int scope=0, share=0; local
1230 share = sfset(sfstdin,SF_SHARE,0);
1310 if(share&SF_SHARE)
/osnet-11/usr/src/lib/libshare_plugins/nfs/
H A Dlibshare_nfs.c54 #include <sharefs/share.h>
443 /* Verify the name starts with "share.nfs." */
447 assert(valp - valstart == 5 && strncmp(valstart, "share", 5) == 0);
458 /* Global property share.nfs.prop */
516 if (nvlist_lookup_string(props, "share.nfs.raw", &strval) == 0) {
538 if (strcmp(namep, "share.nfs") == 0) {
550 /* Check for "share.nfs.sec" */
559 * Special handling for share.nfs.sec
561 * e.g. share.nfs.sec=sys:krb5:dh:default
671 * Now add the security lists to the share
1565 sa_nfs_share_set_def_proto(nvlist_t *share) argument
2145 nvlist_t *share; local
2255 nvlist_t *share; local
2293 nvlist_t *share; local
2335 sa_nfs_share_validate(libshare_handle_t *shdl, nvlist_t *share, sa_validate_flags_t flags, char *errbuf, size_t buflen) argument
3435 sa_fillshare(nvlist_t *share, struct exp_share *sh, boolean_t publish) argument
3551 nfs_build_exportdata(nvlist_t *share, struct exportdata *exportp) argument
3655 sa_nfs_share_publish(nvlist_t *share, int wait) argument
3769 sa_nfs_share_unpublish(nvlist_t *share, int wait) argument
3831 nvlist_t *share; local
[all...]

Completed in 105 milliseconds

12