Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/lib/libshare/os/freebsd/
H A Dnfs.c72 translate_opts(const char *shareopts, FILE *out) in translate_opts() argument
82 strlcpy(oldopts, shareopts, sizeof (oldopts)); in translate_opts()
105 const char *shareopts = impl_share->sa_shareopts; in nfs_enable_share_impl() local
106 if (strcmp(shareopts, "on") == 0) in nfs_enable_share_impl()
107 shareopts = ""; in nfs_enable_share_impl()
118 translate_opts(shareopts, tmpfile) == EOF || in nfs_enable_share_impl()
159 nfs_validate_shareopts(const char *shareopts) in nfs_validate_shareopts() argument
161 if (strlen(shareopts) == 0) in nfs_validate_shareopts()
H A Dsmb.c55 smb_validate_shareopts(const char *shareopts) in smb_validate_shareopts() argument
57 (void) shareopts; in smb_validate_shareopts()
/freebsd/sys/contrib/openzfs/lib/libshare/os/linux/
H A Dnfs.c63 foreach_nfs_shareopt(const char *shareopts, in foreach_nfs_shareopt() argument
69 if (shareopts == NULL) in foreach_nfs_shareopt()
72 if (strcmp(shareopts, "on") == 0) in foreach_nfs_shareopt()
73 shareopts = "rw,crossmnt"; in foreach_nfs_shareopt()
75 shareopts_dup = strdup(shareopts); in foreach_nfs_shareopt()
391 get_linux_shareopts(const char *shareopts, char **plinux_opts) in get_linux_shareopts() argument
405 error = foreach_nfs_shareopt(shareopts, get_linux_shareopts_cb, in get_linux_shareopts()
510 nfs_validate_shareopts(const char *shareopts) in nfs_validate_shareopts() argument
514 if (strlen(shareopts) == 0) in nfs_validate_shareopts()
517 int error = get_linux_shareopts(shareopts, &linux_opts); in nfs_validate_shareopts()
H A Dsmb.c342 smb_validate_shareopts(const char *shareopts) in smb_validate_shareopts() argument
345 if ((strcmp(shareopts, "off") == 0) || (strcmp(shareopts, "on") == 0)) in smb_validate_shareopts()
/freebsd/sys/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
/freebsd/sys/contrib/openzfs/lib/libshare/
H A Dlibshare.c42 #define init_share(zfsname, path, shareopts) \ argument
46 .sa_shareopts = shareopts, \
63 const char *shareopts, enum sa_protocol protocol) in sa_enable_share() argument
68 init_share(zfsname, mountpoint, shareopts); in sa_enable_share()
H A Dlibshare_impl.h40 int (*const validate_shareopts)(const char *shareopts);
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_share/
H A Dzfs_share_005_pos.ksh62 set -A shareopts \
80 if [[ $option != ${shareopts[i]} ]]; then
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_changelist.c182 char shareopts[ZFS_MAXPROPLEN]; in changelist_postfix() local
246 shareopts, sizeof (shareopts), NULL, NULL, 0, in changelist_postfix()
247 B_FALSE) == 0) && (strcmp(shareopts, "off") != 0)); in changelist_postfix()
250 shareopts, sizeof (shareopts), NULL, NULL, 0, in changelist_postfix()
251 B_FALSE) == 0) && (strcmp(shareopts, "off") != 0)); in changelist_postfix()
H A Dlibzfs_mount.c706 char shareopts[ZFS_MAXPROPLEN]; in zfs_share() local
723 shareopts, sizeof (shareopts), &sourcetype, sourcestr, in zfs_share()
725 strcmp(shareopts, "off") == 0) in zfs_share()
737 err = sa_enable_share(zfs_get_name(zhp), mountpoint, shareopts, in zfs_share()
/freebsd/sys/contrib/openzfs/cmd/zfs/
H A Dzfs_main.c6875 char shareopts[ZFS_MAXPROPLEN]; in share_mount_one() local
6918 verify(zfs_prop_get(zhp, ZFS_PROP_SHARENFS, shareopts, in share_mount_one()
6919 sizeof (shareopts), NULL, NULL, 0, B_FALSE) == 0); in share_mount_one()
6923 if (op == OP_SHARE && strcmp(shareopts, "off") == 0 && in share_mount_one()
7054 (shared_nfs && strcmp(shareopts, "on") == 0 && in share_mount_one()
7057 strcmp(shareopts, "off") == 0)) { in share_mount_one()