Lines Matching refs:protocol

68 has_protocol(sa_group_t group, char *protocol)  in has_protocol()  argument
73 optionset = sa_get_optionset(group, protocol); in has_protocol()
457 notify_or_enable_share(sa_share_t share, char *protocol) in notify_or_enable_share() argument
489 (protocol != NULL && strcmp(groupproto, protocol) != 0)) { in notify_or_enable_share()
1066 check_valid_group(sa_group_t group, char *groupname, char *protocol) in check_valid_group() argument
1069 if (protocol != NULL) { in check_valid_group()
1070 if (has_protocol(group, protocol)) { in check_valid_group()
1074 protocol); in check_valid_group()
1077 strcmp(protocol, "nfs") != 0) { in check_valid_group()
1101 enforce_featureset(sa_group_t group, char *protocol, boolean_t dryrun, in enforce_featureset() argument
1106 if (protocol == NULL) in enforce_featureset()
1113 features = sa_proto_get_featureset(protocol); in enforce_featureset()
1116 gettext("Protocol \"%s\" not supported.\n"), protocol); in enforce_featureset()
1132 "set: %s\n"), protocol); in enforce_featureset()
1193 char *protocol = NULL; in sa_create() local
1212 if (protocol != NULL) { in sa_create()
1215 "not supported: %s\n"), protocol); in sa_create()
1218 protocol = optarg; in sa_create()
1219 if (sa_valid_protocol(protocol)) in sa_create()
1222 "Invalid protocol specified: %s\n"), protocol); in sa_create()
1281 if (protocol == NULL && optlist != NULL) { in sa_create()
1291 ret = chk_opt(optlist, 0, protocol); in sa_create()
1311 ret = check_valid_group(group, groupname, protocol); in sa_create()
1327 ret = valid_options(handle, optlist, protocol, in sa_create()
1344 ret = enforce_featureset(group, protocol, in sa_create()
1354 (void) add_optionset(group, optlist, protocol, in sa_create()
1356 } else if (protocol != NULL) { in sa_create()
1358 protocol); in sa_create()
1361 } else if (protocol == NULL) { in sa_create()
1438 char *protocol = NULL; in sa_delete() local
1452 if (protocol != NULL) { in sa_delete()
1455 "not supported: %s\n"), protocol); in sa_delete()
1458 protocol = optarg; in sa_delete()
1459 if (!sa_valid_protocol(protocol)) { in sa_delete()
1461 "specified: %s\n"), protocol); in sa_delete()
1516 if (sectype != NULL && protocol == NULL) { in sa_delete()
1542 if (protocol == NULL) { in sa_delete()
1575 security = sa_get_security(group, sectype, protocol); in sa_delete()
1581 optionset = sa_get_optionset(group, protocol); in sa_delete()
1602 strcmp(secprot, protocol) == 0) in sa_delete()
1621 (void) sa_delete_legacy(share, protocol); in sa_delete()
1725 char *protocol = NULL; in sa_list() local
1737 if (protocol != NULL) { in sa_list()
1741 protocol); in sa_list()
1744 protocol = optarg; in sa_list()
1745 if (!sa_valid_protocol(protocol)) { in sa_list()
1748 protocol); in sa_list()
1788 if (protocol == NULL || has_protocol(group, protocol)) { in sa_list()
1883 show_properties(sa_group_t group, char *protocol, char *prefix) in show_properties() argument
1890 if (protocol != NULL) { in show_properties()
1891 optionset = sa_get_optionset(group, protocol); in show_properties()
1895 out_properties(optionset, protocol, NULL); in show_properties()
1897 security = sa_get_security(group, protocol, NULL); in show_properties()
1901 out_properties(security, protocol, NULL); in show_properties()
1904 for (optionset = sa_get_optionset(group, protocol); in show_properties()
1915 for (security = sa_get_security(group, NULL, protocol); in show_properties()
2293 char *protocol = NULL; in sa_show() local
2309 if (protocol != NULL) { in sa_show()
2313 protocol); in sa_show()
2316 protocol = optarg; in sa_show()
2317 if (!sa_valid_protocol(protocol)) { in sa_show()
2320 protocol); in sa_show()
2370 show_group(group, verbose, properties, protocol, in sa_show()
2382 protocol, NULL); in sa_show()
3673 char *protocol, char *sharepath, char *rsrcname, int dryrun) in basic_set() argument
3737 features = sa_proto_get_featureset(protocol); in basic_set()
3745 ret = valid_options(handle, optlist, protocol, in basic_set()
3750 protocol, &ret); in basic_set()
3753 protocol, &ret); in basic_set()
3756 share, protocol); in basic_set()
3774 (void) enable_all_groups(handle, worklist, 0, 0, protocol, in basic_set()
3792 char *protocol, char *sharepath, int dryrun, char *sectype) in space_set() argument
3803 if (sa_proto_valid_space(protocol, sectype) == 0) { in space_set()
3833 ret = valid_options(handle, optlist, protocol, in space_set()
3838 optlist, protocol, &ret); in space_set()
3841 optlist, protocol, &ret); in space_set()
3849 protocol); in space_set()
3866 protocol, B_TRUE); in space_set()
3889 char *protocol = NULL; in sa_set() local
3906 if (protocol != NULL) { in sa_set()
3909 "not supported: %s\n"), protocol); in sa_set()
3912 protocol = optarg; in sa_set()
3913 if (!sa_valid_protocol(protocol)) { in sa_set()
3916 protocol); in sa_set()
3987 ret = chk_opt(optlist, optset != NULL, protocol); in sa_set()
3990 protocol == NULL || ret != OPT_ADD_OK) { in sa_set()
4004 if (protocol == NULL) { in sa_set()
4026 ret = basic_set(handle, groupname, optlist, protocol, in sa_set()
4029 ret = space_set(handle, groupname, optlist, protocol, in sa_set()
4199 char *protocol, char *sharepath, char *rsrcname, int dryrun) in basic_unset() argument
4252 features = sa_proto_get_featureset(protocol); in basic_unset()
4261 optlist, protocol); in basic_unset()
4267 protocol, &ret); in basic_unset()
4273 protocol); in basic_unset()
4282 optlist, protocol, &ret); in basic_unset()
4286 protocol); in basic_unset()
4307 protocol, B_TRUE); in basic_unset()
4322 char *protocol, char *sharepath, int dryrun, char *sectype) in space_unset() argument
4345 optlist, protocol, sectype); in space_unset()
4353 sectype, optlist, protocol, &ret); in space_unset()
4357 sectype, protocol); in space_unset()
4367 optlist, protocol, &ret); in space_unset()
4372 sec = sa_proto_space_alias(protocol, sectype); in space_unset()
4373 security = sa_get_security(group, sec, protocol); in space_unset()
4390 worklist = add_list(worklist, group, 0, protocol); in space_unset()
4402 protocol, B_TRUE); in space_unset()
4424 char *protocol = NULL; in sa_unset() local
4441 if (protocol != NULL) { in sa_unset()
4444 "not supported: %s\n"), protocol); in sa_unset()
4447 protocol = optarg; in sa_unset()
4448 if (!sa_valid_protocol(protocol)) { in sa_unset()
4451 protocol); in sa_unset()
4529 ret = chk_opt(optlist, optset != NULL, protocol); in sa_unset()
4532 protocol == NULL) { in sa_unset()
4546 if (protocol == NULL) { in sa_unset()
4564 ret = basic_unset(handle, groupname, optlist, protocol, in sa_unset()
4567 ret = space_unset(handle, groupname, optlist, protocol, in sa_unset()
4591 char *protocol = NULL; in sa_enable_group() local
4606 if (protocol != NULL) { in sa_enable_group()
4609 "not supported: %s\n"), protocol); in sa_enable_group()
4612 protocol = optarg; in sa_enable_group()
4613 if (!sa_valid_protocol(protocol)) { in sa_enable_group()
4616 protocol); in sa_enable_group()
4671 0, protocol); in sa_enable_group()
4688 worklist = add_list(worklist, group, 0, protocol); in sa_enable_group()
4807 char *protocol = NULL; in sa_disable_group() local
4822 if (protocol != NULL) { in sa_disable_group()
4825 "not supported: %s\n"), protocol); in sa_disable_group()
4828 protocol = optarg; in sa_disable_group()
4829 if (!sa_valid_protocol(protocol)) { in sa_disable_group()
4832 protocol); in sa_disable_group()
4888 protocol); in sa_disable_group()
4905 worklist = add_list(worklist, group, 0, protocol); in sa_disable_group()
4939 char *protocol = NULL; in sa_start_group() local
4953 if (protocol != NULL) { in sa_start_group()
4956 "not supported: %s\n"), protocol); in sa_start_group()
4959 protocol = optarg; in sa_start_group()
4960 if (!sa_valid_protocol(protocol)) { in sa_start_group()
4963 protocol); in sa_start_group()
5010 protocol); in sa_start_group()
5023 protocol) != NULL) { in sa_start_group()
5039 protocol); in sa_start_group()
5045 (void) enable_all_groups(handle, worklist, 0, 1, protocol, B_FALSE); in sa_start_group()
5067 char *protocol = NULL; in sa_stop_group() local
5081 if (protocol != NULL) { in sa_stop_group()
5084 "not supported: %s\n"), protocol); in sa_stop_group()
5087 protocol = optarg; in sa_stop_group()
5088 if (!sa_valid_protocol(protocol)) { in sa_stop_group()
5091 protocol); in sa_stop_group()
5136 protocol); in sa_stop_group()
5156 protocol); in sa_stop_group()
5430 char *protocol = "nfs"; in sa_legacy_share() local
5461 protocol = optarg; in sa_legacy_share()
5462 if (!sa_valid_protocol(protocol)) { in sa_legacy_share()
5464 protocol, "share") == 0 && in sa_legacy_share()
5470 "%s\n"), protocol); in sa_legacy_share()
5511 (void) output_legacy_file(stdout, protocol, handle); in sa_legacy_share()
5543 features = sa_proto_get_featureset(protocol); in sa_legacy_share()
5557 if (strcmp(protocol, "smb") == 0) in sa_legacy_share()
5581 protocol); in sa_legacy_share()
5629 remove_all_options(share, protocol); in sa_legacy_share()
5672 protocol); in sa_legacy_share()
5687 ret = sa_enable_share(share, protocol); in sa_legacy_share()
5690 protocol); in sa_legacy_share()
5694 protocol); in sa_legacy_share()
5717 char *protocol = "nfs"; /* for now */ in sa_legacy_unshare() local
5736 protocol = optarg; in sa_legacy_unshare()
5737 if (!sa_valid_protocol(protocol)) { in sa_legacy_unshare()
5739 protocol, "unshare") == 0 && in sa_legacy_unshare()
5809 features = sa_proto_get_featureset(protocol); in sa_legacy_unshare()
5815 protocol); in sa_legacy_unshare()
5838 ret = sa_disable_share(share, protocol); in sa_legacy_unshare()