/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_share/ |
H A D | zfs_share_005_pos.ksh | 54 set -A shareopts \ 57 set -A shareopts \ 71 while (( i < ${#shareopts[*]} )) 73 log_must zfs set sharenfs="${shareopts[i]}" $TESTPOOL/$TESTFS 76 if [[ $option != ${shareopts[i]} ]]; then 77 log_fail "get sharenfs failed. ($option != ${shareopts[i]})"
|
/freebsd-current/sys/contrib/openzfs/lib/libshare/os/freebsd/ |
H A D | smb.c | 55 smb_validate_shareopts(const char *shareopts) argument 57 (void) shareopts;
|
H A D | nfs.c | 72 translate_opts(const char *shareopts, FILE *out) argument 82 strlcpy(oldopts, shareopts, sizeof (oldopts)); 105 const char *shareopts = impl_share->sa_shareopts; local 106 if (strcmp(shareopts, "on") == 0) 107 shareopts = ""; 118 translate_opts(shareopts, tmpfile) == EOF || 159 nfs_validate_shareopts(const char *shareopts) argument 161 if (strlen(shareopts) == 0)
|
/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zfs_share/ |
H A D | zfs_share_005_pos.ksh | 62 set -A shareopts \ 75 while (( i < ${#shareopts[*]} )) 77 log_must $ZFS set sharenfs="${shareopts[i]}" $TESTPOOL/$TESTFS 80 if [[ $option != ${shareopts[i]} ]]; then 81 log_fail "get sharenfs failed. ($option != ${shareopts[i]})"
|
/freebsd-current/sys/contrib/openzfs/lib/libshare/ |
H A D | libshare_impl.h | 40 int (*const validate_shareopts)(const char *shareopts);
|
H A D | libshare.c | 42 #define init_share(zfsname, path, shareopts) \ 46 .sa_shareopts = shareopts, \ 63 const char *shareopts, enum sa_protocol protocol) 68 init_share(zfsname, mountpoint, shareopts); 62 sa_enable_share(const char *zfsname, const char *mountpoint, const char *shareopts, enum sa_protocol protocol) argument
|
/freebsd-current/sys/contrib/openzfs/lib/libshare/os/linux/ |
H A D | nfs.c | 63 foreach_nfs_shareopt(const char *shareopts, argument 69 if (shareopts == NULL) 72 if (strcmp(shareopts, "on") == 0) 73 shareopts = "rw,crossmnt"; 75 shareopts_dup = strdup(shareopts); 391 get_linux_shareopts(const char *shareopts, char **plinux_opts) argument 405 error = foreach_nfs_shareopt(shareopts, get_linux_shareopts_cb, 510 nfs_validate_shareopts(const char *shareopts) argument 514 if (strlen(shareopts) == 0) 517 int error = get_linux_shareopts(shareopts, [all...] |
H A D | smb.c | 342 smb_validate_shareopts(const char *shareopts) argument 345 if ((strcmp(shareopts, "off") == 0) || (strcmp(shareopts, "on") == 0))
|
/freebsd-current/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_changelist.c | 182 char shareopts[ZFS_MAXPROPLEN]; local 246 shareopts, sizeof (shareopts), NULL, NULL, 0, 247 B_FALSE) == 0) && (strcmp(shareopts, "off") != 0)); 250 shareopts, sizeof (shareopts), NULL, NULL, 0, 251 B_FALSE) == 0) && (strcmp(shareopts, "off") != 0));
|
H A D | libzfs_mount.c | 706 char shareopts[ZFS_MAXPROPLEN]; local 723 shareopts, sizeof (shareopts), &sourcetype, sourcestr, 725 strcmp(shareopts, "off") == 0) 737 err = sa_enable_share(zfs_get_name(zhp), mountpoint, shareopts,
|
/freebsd-current/sys/contrib/openzfs/cmd/zfs/ |
H A D | zfs_main.c | 6875 char shareopts[ZFS_MAXPROPLEN]; local 6918 verify(zfs_prop_get(zhp, ZFS_PROP_SHARENFS, shareopts, 6919 sizeof (shareopts), NULL, NULL, 0, B_FALSE) == 0); 6923 if (op == OP_SHARE && strcmp(shareopts, "off") == 0 && 6938 * shareopts is non-legacy but the mountpoint is legacy, we 7041 * shareopts are appropriate for auto management. If the 7054 (shared_nfs && strcmp(shareopts, "on") == 0 && 7057 strcmp(shareopts, "off") == 0)) {
|