Home
last modified time | relevance | path

Searched refs:shareopts (Results 1 – 11 of 11) sorted by relevance

/f-stack/freebsd/contrib/openzfs/lib/libshare/os/linux/
H A Dnfs.c101 foreach_nfs_shareopt(const char *shareopts, in foreach_nfs_shareopt() argument
107 if (shareopts == NULL) in foreach_nfs_shareopt()
110 if (strcmp(shareopts, "on") == 0) in foreach_nfs_shareopt()
111 shareopts = "rw,crossmnt"; in foreach_nfs_shareopt()
113 shareopts_dup = strdup(shareopts); in foreach_nfs_shareopt()
235 char *shareopts; in foreach_nfs_host() local
243 shareopts = FSINFO(impl_share, nfs_fstype)->shareopts; in foreach_nfs_host()
554 char *shareopts, *linux_opts; in nfs_enable_share() local
576 shareopts = FSINFO(impl_share, nfs_fstype)->shareopts; in nfs_enable_share()
663 nfs_validate_shareopts(const char *shareopts) in nfs_validate_shareopts() argument
[all …]
H A Dsmb.c276 char *shareopts; in smb_enable_share() local
284 shareopts = FSINFO(impl_share, smb_fstype)->shareopts; in smb_enable_share()
285 if (shareopts == NULL) /* on/off */ in smb_enable_share()
288 if (strcmp(shareopts, "off") == 0) in smb_enable_share()
351 smb_validate_shareopts(const char *shareopts) in smb_validate_shareopts() argument
354 if ((strcmp(shareopts, "off") == 0) || (strcmp(shareopts, "on") == 0)) in smb_validate_shareopts()
391 smb_update_shareopts(sa_share_impl_t impl_share, const char *shareopts) in smb_update_shareopts() argument
396 FSINFO(impl_share, smb_fstype)->shareopts = (char *)shareopts; in smb_update_shareopts()
414 FSINFO(impl_share, smb_fstype)->shareopts = NULL; in smb_clear_shareopts()
/f-stack/freebsd/contrib/openzfs/lib/libshare/os/freebsd/
H A Dnfs.c154 translate_opts(const char *shareopts) in translate_opts() argument
165 strlcpy(oldopts, shareopts, sizeof (oldopts)); in translate_opts()
303 char *shareopts = FSINFO(impl_share, nfs_fstype)->shareopts; in nfs_enable_share() local
304 if (strcmp(shareopts, "on") == 0) in nfs_enable_share()
305 shareopts = ""; in nfs_enable_share()
308 translate_opts(shareopts)) < 0) { in nfs_enable_share()
398 nfs_validate_shareopts(const char *shareopts) in nfs_validate_shareopts() argument
404 nfs_update_shareopts(sa_share_impl_t impl_share, const char *shareopts) in nfs_update_shareopts() argument
406 FSINFO(impl_share, nfs_fstype)->shareopts = (char *)shareopts; in nfs_update_shareopts()
413 FSINFO(impl_share, nfs_fstype)->shareopts = NULL; in nfs_clear_shareopts()
H A Dsmb.c67 smb_validate_shareopts(const char *shareopts) in smb_validate_shareopts() argument
89 smb_update_shareopts(sa_share_impl_t impl_share, const char *shareopts) in smb_update_shareopts() argument
107 FSINFO(impl_share, smb_fstype)->shareopts = NULL; in smb_clear_shareopts()
/f-stack/freebsd/contrib/openzfs/lib/libshare/
H A Dlibshare_impl.h29 char *shareopts; member
46 int (*validate_shareopts)(const char *shareopts);
48 const char *shareopts);
H A Dlibshare.c81 const char *shareopts, char *protocol) in sa_enable_share() argument
96 shareopts); in sa_enable_share()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_share/
H A Dzfs_share_005_pos.ksh54 set -A shareopts \
57 set -A shareopts \
76 if [[ $option != ${shareopts[i]} ]]; then
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs_changelist.c174 char shareopts[ZFS_MAXPROPLEN]; in changelist_postfix() local
231 shareopts, sizeof (shareopts), NULL, NULL, 0, in changelist_postfix()
232 B_FALSE) == 0) && (strcmp(shareopts, "off") != 0)); in changelist_postfix()
235 shareopts, sizeof (shareopts), NULL, NULL, 0, in changelist_postfix()
236 B_FALSE) == 0) && (strcmp(shareopts, "off") != 0)); in changelist_postfix()
H A Dlibzfs_mount.c721 char shareopts[ZFS_MAXPROPLEN]; in zfs_share_proto() local
735 shareopts, sizeof (shareopts), &sourcetype, sourcestr, in zfs_share_proto()
737 strcmp(shareopts, "off") == 0) in zfs_share_proto()
749 err = sa_enable_share(zfs_get_name(zhp), mountpoint, shareopts, in zfs_share_proto()
H A Dlibzfs.abi4765 …<var-decl name='shareopts' type-id='type-id-49' visibility='default' filepath='/home/fedora/zfs/li…
4806 …<parameter type-id='type-id-105' name='shareopts' filepath='/home/fedora/zfs/lib/libshare/libshare…
/f-stack/freebsd/contrib/openzfs/cmd/zfs/
H A Dzfs_main.c6666 char shareopts[ZFS_MAXPROPLEN]; in share_mount_one() local
6709 verify(zfs_prop_get(zhp, ZFS_PROP_SHARENFS, shareopts, in share_mount_one()
6710 sizeof (shareopts), NULL, NULL, 0, B_FALSE) == 0); in share_mount_one()
6714 if (op == OP_SHARE && strcmp(shareopts, "off") == 0 && in share_mount_one()
6844 (shared_nfs && strcmp(shareopts, "on") == 0 && in share_mount_one()
6847 strcmp(shareopts, "off") == 0)) { in share_mount_one()