f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering This file is part of systemd.
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering Copyright 2015 Lennart Poettering
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering systemd is free software; you can redistribute it and/or modify it
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering under the terms of the GNU Lesser General Public License as published by
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering (at your option) any later version.
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering systemd is distributed in the hope that it will be useful, but
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering Lesser General Public License for more details.
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering You should have received a copy of the GNU Lesser General Public License
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poetteringint settings_load(FILE *f, const char *path, Settings **ret) {
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering _cleanup_(settings_freep) Settings *s = NULL;
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering s->volatile_mode = _VOLATILE_MODE_INVALID;
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering config_item_perf_lookup, nspawn_gperf_lookup,
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering custom_mount_free_all(s->custom_mounts, s->n_custom_mounts);
0e2656744f6d2e2cf65788a497f266d469865e30Lennart Poetteringbool settings_private_network(Settings *s) {
f757855e81fc0bc116de372220096e532afb5cb8Lennart PoetteringDEFINE_CONFIG_PARSE_ENUM(config_parse_volatile_mode, volatile_mode, VolatileMode, "Failed to parse volatile mode");
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering r = expose_port_parse(&s->expose_ports, rvalue);
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering log_syntax(unit, LOG_ERR, filename, line, r, "Duplicate port specification, ignoring: %s", rvalue);
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse host port %s: %m", rvalue);
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering r = extract_first_word(&rvalue, &word, NULL, 0);
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering log_syntax(unit, LOG_ERR, filename, line, r, "Failed to extract capability string, ignoring: %s", rvalue);
12ca818ffddb77eb6a0fabe369a5bcbf6994ff8bLennart Poettering log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse capability, ignoring: %s", word);
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse 128bit ID/UUID, ignoring: %s", rvalue);
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering r = bind_mount_parse(&settings->custom_mounts, &settings->n_custom_mounts, rvalue, ltype);
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering log_syntax(unit, LOG_ERR, filename, line, r, "Invalid bind mount specification %s: %m", rvalue);
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering r = tmpfs_mount_parse(&settings->custom_mounts, &settings->n_custom_mounts, rvalue);
f757855e81fc0bc116de372220096e532afb5cb8Lennart Poettering log_syntax(unit, LOG_ERR, filename, line, r, "Invalid temporary file system specification %s: %m", rvalue);
f6d6bad1461a8f545a80955fadd7ee0c10db15bbLennart Poettering r = veth_extra_parse(&settings->network_veth_extra, rvalue);
f6d6bad1461a8f545a80955fadd7ee0c10db15bbLennart Poettering log_syntax(unit, LOG_ERR, filename, line, r, "Invalid extra virtual Ethernet link specification %s: %m", rvalue);
7732f92bad5f24a4bd03bb357af46da56b0ac94dLennart Poettering log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse Boot= parameter %s, ignoring: %m", rvalue);
7732f92bad5f24a4bd03bb357af46da56b0ac94dLennart Poettering log_syntax(unit, LOG_ERR, filename, line, r, "Conflicting Boot= or ProcessTwo= setting found. Ignoring.");
7732f92bad5f24a4bd03bb357af46da56b0ac94dLennart Poettering log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse ProcessTwo= parameter %s, ignoring: %m", rvalue);
7732f92bad5f24a4bd03bb357af46da56b0ac94dLennart Poettering log_syntax(unit, LOG_ERR, filename, line, r, "Conflicting Boot= or ProcessTwo= setting found. Ignoring.");