1 /* SPDX-License-Identifier: LGPL-2.1+ */
3 #include "conf-parser.h"
6 #include "homed-conf.h"
8 int manager_parse_config_file(Manager
*m
) {
13 r
= config_parse_many_nulstr(PKGSYSCONFDIR
"/homed.conf",
14 CONF_PATHS_NULSTR("systemd/homed.conf.d"),
16 config_item_perf_lookup
, homed_gperf_lookup
,
17 CONFIG_PARSE_WARN
, m
);
25 DEFINE_CONFIG_PARSE_ENUM(config_parse_default_storage
, user_storage
, UserStorage
, "Failed to parse default storage setting");
27 int config_parse_default_file_system_type(
32 unsigned section_line
,
44 if (!isempty(rvalue
) && !supported_fstype(rvalue
)) {
45 log_syntax(unit
, LOG_ERR
, filename
, line
, 0, "Unsupported file system, ignoring: %s", rvalue
);
49 return free_and_strdup_warn(s
, empty_to_null(rvalue
));