Lines Matching defs:opts

553 	struct vfsoptlist *opts;
603 error = vfs_buildopts(optuio, &opts);
614 error = vfs_copyopt(opts, "jid", &jid, sizeof(jid));
620 error = vfs_copyopt(opts, "securelevel", &slevel, sizeof(slevel));
629 vfs_copyopt(opts, "children.max", &childmax, sizeof(childmax));
637 error = vfs_copyopt(opts, "enforce_statfs", &enforce, sizeof(enforce));
648 error = vfs_copyopt(opts, "devfs_ruleset", &rsnum, sizeof(rsnum));
661 vfs_flagopt(opts, pr_flag_names[fi], &pr_flags, 1 << fi);
662 vfs_flagopt(opts, pr_flag_nonames[fi], &ch_flags, 1 << fi);
667 error = vfs_copyopt(opts, pr_flag_jailsys[fi].name, &jsys,
696 vfs_opterror(opts, "new jail must persist or attach");
702 vfs_opterror(opts, "vnet cannot be changed after creation");
709 vfs_opterror(opts, "ip4 cannot be changed after creation");
716 vfs_opterror(opts, "ip6 cannot be changed after creation");
724 vfs_flagopt(opts, pr_allow_names[fi], &pr_allow, 1 << fi);
725 vfs_flagopt(opts, pr_allow_nonames[fi], &ch_allow, 1 << fi);
729 error = vfs_getopt(opts, "name", (void **)&name, &len);
745 error = vfs_getopt(opts, "host.hostname", (void **)&host, &len);
763 error = vfs_getopt(opts, "host.domainname", (void **)&domain, &len);
781 error = vfs_getopt(opts, "host.hostuuid", (void **)&uuid, &len);
803 error = vfs_copyopt(opts, "host.hostid", &hid32, sizeof(hid32));
807 error = vfs_copyopt(opts, "host.hostid", &hid, sizeof(hid));
819 error = vfs_getopt(opts, "ip4.addr", &op, &ip4s);
836 vfs_opterror(opts, "too many IPv4 addresses");
877 error = vfs_getopt(opts, "ip6.addr", &op, &ip6s);
894 vfs_opterror(opts, "too many IPv6 addresses");
921 vfs_opterror(opts,
929 error = vfs_getopt(opts, "path", (void **)&path, &len);
937 vfs_opterror(opts,
982 error = vfs_getopt(opts, "osrelease", (void **)&osrelstr, &len);
990 vfs_opterror(opts,
996 vfs_opterror(opts,
1003 error = vfs_copyopt(opts, "osreldate", &osreldt, sizeof(osreldt));
1011 vfs_opterror(opts,
1017 vfs_opterror(opts, "osreldate cannot be 0");
1028 error = osd_jail_call(NULL, PR_METHOD_CHECK, opts);
1033 TAILQ_FOREACH(opt, opts, link) {
1036 vfs_opterror(opts, "unknown parameter: %s", opt->name);
1048 vfs_opterror(opts, "no valid operation (create or update)");
1069 vfs_opterror(opts, "negative jid");
1079 vfs_opterror(opts, "jail %d already exists",
1090 vfs_opterror(opts, "jail %d is dying",
1112 vfs_opterror(opts, "jail %d not found", jid);
1140 vfs_opterror(opts,
1148 vfs_opterror(opts,
1188 vfs_opterror(opts,
1206 vfs_opterror(opts,
1214 vfs_opterror(opts, "jail \"%s\" not found",
1223 vfs_opterror(opts, "update specified no jail");
1232 vfs_opterror(opts, "prison limit exceeded");
1240 vfs_opterror(opts, "parent jail went away!");
1262 vfs_opterror(opts,
1391 vfs_opterror(opts,
1399 vfs_opterror(opts,
1407 vfs_opterror(opts,
1516 vfs_opterror(opts,
1582 vfs_opterror(opts,
1601 vfs_opterror(opts,
1854 error = osd_jail_call(pr, PR_METHOD_CREATE, opts);
1860 error = osd_jail_call(pr, PR_METHOD_SET, opts);
1873 vfs_opterror(opts, "attach failed");
1927 vfs_getopt(opts, "errmsg", (void **)&errmsg, &errmsg_len);
1929 errmsg_pos = 2 * vfs_getopt_pos(opts, "errmsg") + 1;
1951 vfs_freeopts(opts);
1989 struct vfsoptlist *opts;
1997 error = vfs_buildopts(optuio, &opts);
2000 errmsg_pos = vfs_getopt_pos(opts, "errmsg");
2007 error = vfs_copyopt(opts, "lastjid", &jid, sizeof(jid));
2021 vfs_opterror(opts, "no jail after %d", jid);
2026 error = vfs_copyopt(opts, "jid", &jid, sizeof(jid));
2034 vfs_opterror(opts, "jail %d is dying",
2041 vfs_opterror(opts, "jail %d not found", jid);
2047 error = vfs_getopt(opts, "name", (void **)&name, &len);
2058 vfs_opterror(opts, "jail \"%s\" is dying",
2065 vfs_opterror(opts, "jail \"%s\" not found", name);
2070 vfs_opterror(opts, "no jail specified");
2079 error = vfs_setopt(opts, "jid", &pr->pr_id, sizeof(pr->pr_id));
2083 error = vfs_setopt(opts, "parent", &i, sizeof(i));
2086 error = vfs_setopts(opts, "name", prison_name(mypr, pr));
2089 error = vfs_setopt(opts, "cpuset.id", &pr->pr_cpuset->cs_id,
2093 error = vfs_setopts(opts, "path", prison_path(mypr, pr));
2097 error = vfs_setopt_part(opts, "ip4.addr", pr->pr_ip4,
2103 error = vfs_setopt_part(opts, "ip6.addr", pr->pr_ip6,
2108 error = vfs_setopt(opts, "securelevel", &pr->pr_securelevel,
2112 error = vfs_setopt(opts, "children.cur", &pr->pr_childcount,
2116 error = vfs_setopt(opts, "children.max", &pr->pr_childmax,
2120 error = vfs_setopts(opts, "host.hostname", pr->pr_hostname);
2123 error = vfs_setopts(opts, "host.domainname", pr->pr_domainname);
2126 error = vfs_setopts(opts, "host.hostuuid", pr->pr_hostuuid);
2133 error = vfs_setopt(opts, "host.hostid", &hid32, sizeof(hid32));
2136 error = vfs_setopt(opts, "host.hostid", &pr->pr_hostid,
2140 error = vfs_setopt(opts, "enforce_statfs", &pr->pr_enforce_statfs,
2144 error = vfs_setopt(opts, "devfs_ruleset", &pr->pr_devfs_rsnum,
2153 error = vfs_setopt(opts, pr_flag_names[fi], &i, sizeof(i));
2157 error = vfs_setopt(opts, pr_flag_nonames[fi], &i, sizeof(i));
2170 vfs_setopt(opts, pr_flag_jailsys[fi].name, &i, sizeof(i));
2179 error = vfs_setopt(opts, pr_allow_names[fi], &i, sizeof(i));
2183 error = vfs_setopt(opts, pr_allow_nonames[fi], &i, sizeof(i));
2188 error = vfs_setopt(opts, "dying", &i, sizeof(i));
2192 error = vfs_setopt(opts, "nodying", &i, sizeof(i));
2195 error = vfs_setopt(opts, "osreldate", &pr->pr_osreldate,
2199 error = vfs_setopts(opts, "osrelease", pr->pr_osrelease);
2206 error = osd_jail_call(pr, PR_METHOD_GET, opts);
2212 TAILQ_FOREACH(opt, opts, link) {
2215 vfs_opterror(opts, "unknown parameter: %s", opt->name);
2222 TAILQ_FOREACH(opt, opts, link) {
2251 vfs_getopt(opts, "errmsg", (void **)&errmsg, &errmsg_len);
2264 vfs_freeopts(opts);