summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--support/nfs/conffile.c8
-rw-r--r--systemd/nfs.conf.man13
2 files changed, 19 insertions, 2 deletions
diff --git a/support/nfs/conffile.c b/support/nfs/conffile.c
index 965726c..8de580b 100644
--- a/support/nfs/conffile.c
+++ b/support/nfs/conffile.c
@@ -52,6 +52,7 @@
#pragma GCC visibility push(hidden)
static void conf_load_defaults(void);
+static int conf_load(int trans, char *path);
static int conf_set(int , char *, char *, char *,
char *, int , int );
@@ -308,8 +309,11 @@ conf_parse_line(int trans, char *line, size_t sz)
break;
}
}
- /* XXX Perhaps should we not ignore errors? */
- conf_set(trans, section, arg, line, val, 0, 0);
+ if (strcasecmp(line, "include") == 0)
+ conf_load(trans, val);
+ else
+ /* XXX Perhaps should we not ignore errors? */
+ conf_set(trans, section, arg, line, val, 0, 0);
return;
}
}
diff --git a/systemd/nfs.conf.man b/systemd/nfs.conf.man
index 726f603..13459ea 100644
--- a/systemd/nfs.conf.man
+++ b/systemd/nfs.conf.man
@@ -42,6 +42,19 @@ or
.RB \*(lq ; \*(rq
is ignored, as is any blank line.
.PP
+The value name
+.B include
+is special. If a section contains
+.RS
+.B include = /some/file/name
+.RE
+then the named file will be read, and any value assignments found
+there-in will be added to the current section. If the file contains
+section headers, then new sections will be created just as if the
+included file appeared in place of the
+.B include
+line.
+.PP
Lookup of section and value names is case-insensitive.
Where a Boolean value is expected, any of