Lines Matching defs:opt
895 char *cp, *opt, *name, *secname, *tlscertname;
993 if (vfs_getopt(mp->mnt_optnew, "tlscertname", (void **)&opt, &len) ==
1001 if (opt == NULL || len <= 1 || len > NAME_MAX - 6) {
1007 strlcpy(tlscertname, opt, len);
1009 if (vfs_getopt(mp->mnt_optnew, "readdirsize", (void **)&opt, NULL) == 0) {
1010 if (opt == NULL) {
1015 ret = sscanf(opt, "%d", &args.readdirsize);
1018 opt);
1024 if (vfs_getopt(mp->mnt_optnew, "readahead", (void **)&opt, NULL) == 0) {
1025 if (opt == NULL) {
1030 ret = sscanf(opt, "%d", &args.readahead);
1033 opt);
1039 if (vfs_getopt(mp->mnt_optnew, "wsize", (void **)&opt, NULL) == 0) {
1040 if (opt == NULL) {
1045 ret = sscanf(opt, "%d", &args.wsize);
1048 opt);
1054 if (vfs_getopt(mp->mnt_optnew, "rsize", (void **)&opt, NULL) == 0) {
1055 if (opt == NULL) {
1060 ret = sscanf(opt, "%d", &args.rsize);
1063 opt);
1069 if (vfs_getopt(mp->mnt_optnew, "retrans", (void **)&opt, NULL) == 0) {
1070 if (opt == NULL) {
1075 ret = sscanf(opt, "%d", &args.retrans);
1078 opt);
1084 if (vfs_getopt(mp->mnt_optnew, "actimeo", (void **)&opt, NULL) == 0) {
1085 ret = sscanf(opt, "%d", &args.acregmin);
1088 opt);
1096 if (vfs_getopt(mp->mnt_optnew, "acregmin", (void **)&opt, NULL) == 0) {
1097 ret = sscanf(opt, "%d", &args.acregmin);
1100 opt);
1106 if (vfs_getopt(mp->mnt_optnew, "acregmax", (void **)&opt, NULL) == 0) {
1107 ret = sscanf(opt, "%d", &args.acregmax);
1110 opt);
1116 if (vfs_getopt(mp->mnt_optnew, "acdirmin", (void **)&opt, NULL) == 0) {
1117 ret = sscanf(opt, "%d", &args.acdirmin);
1120 opt);
1126 if (vfs_getopt(mp->mnt_optnew, "acdirmax", (void **)&opt, NULL) == 0) {
1127 ret = sscanf(opt, "%d", &args.acdirmax);
1130 opt);
1136 if (vfs_getopt(mp->mnt_optnew, "wcommitsize", (void **)&opt, NULL) == 0) {
1137 ret = sscanf(opt, "%d", &args.wcommitsize);
1139 vfs_mount_error(mp, "illegal wcommitsize: %s", opt);
1145 if (vfs_getopt(mp->mnt_optnew, "timeo", (void **)&opt, NULL) == 0) {
1146 ret = sscanf(opt, "%d", &args.timeo);
1149 opt);
1155 if (vfs_getopt(mp->mnt_optnew, "timeout", (void **)&opt, NULL) == 0) {
1156 ret = sscanf(opt, "%d", &args.timeo);
1159 opt);
1165 if (vfs_getopt(mp->mnt_optnew, "nametimeo", (void **)&opt, NULL) == 0) {
1166 ret = sscanf(opt, "%d", &nametimeo);
1168 vfs_mount_error(mp, "illegal nametimeo: %s", opt);
1173 if (vfs_getopt(mp->mnt_optnew, "negnametimeo", (void **)&opt, NULL)
1175 ret = sscanf(opt, "%d", &negnametimeo);
1178 opt);
1183 if (vfs_getopt(mp->mnt_optnew, "minorversion", (void **)&opt, NULL) ==
1185 ret = sscanf(opt, "%d", &minvers);
1188 vfs_mount_error(mp, "illegal minorversion: %s", opt);
1999 char *opt, char **buf, size_t *blen)
2003 if (testval != 0 && *blen > strlen(opt)) {
2004 len = snprintf(*buf, *blen, "%s", opt);
2005 if (len != strlen(opt))
2016 char *opt, char **buf, size_t *blen)
2020 if (*blen > strlen(opt) + 1) {
2022 len = snprintf(*buf, *blen, "%s=%d", opt, optval);