|
|
b91b93 |
diff --git a/utils/gssd/gssd.c b/utils/gssd/gssd.c
|
|
|
b91b93 |
index 2c14e5f..00df2fc 100644
|
|
|
b91b93 |
--- a/utils/gssd/gssd.c
|
|
|
b91b93 |
+++ b/utils/gssd/gssd.c
|
|
|
b91b93 |
@@ -888,6 +888,9 @@ main(int argc, char *argv[])
|
|
|
b91b93 |
|
|
|
b91b93 |
read_gss_conf();
|
|
|
b91b93 |
|
|
|
b91b93 |
+ verbosity = conf_get_num("gssd", "Verbosity", verbosity);
|
|
|
b91b93 |
+ rpc_verbosity = conf_get_num("gssd", "RPC-Verbosity", rpc_verbosity);
|
|
|
b91b93 |
+
|
|
|
b91b93 |
while ((opt = getopt(argc, argv, "DfvrlmnMp:k:d:t:T:R:")) != -1) {
|
|
|
b91b93 |
switch (opt) {
|
|
|
b91b93 |
case 'f':
|
|
|
b91b93 |
diff --git a/utils/gssd/svcgssd.c b/utils/gssd/svcgssd.c
|
|
|
b91b93 |
index 8e918cc..ec49b61 100644
|
|
|
b91b93 |
--- a/utils/gssd/svcgssd.c
|
|
|
b91b93 |
+++ b/utils/gssd/svcgssd.c
|
|
|
b91b93 |
@@ -113,6 +113,10 @@ main(int argc, char *argv[])
|
|
|
b91b93 |
else
|
|
|
b91b93 |
principal = s;
|
|
|
b91b93 |
|
|
|
b91b93 |
+ verbosity = conf_get_num("svcgssd", "Verbosity", verbosity);
|
|
|
b91b93 |
+ rpc_verbosity = conf_get_num("svcgssd", "RPC-Verbosity", rpc_verbosity);
|
|
|
b91b93 |
+ idmap_verbosity = conf_get_num("svcgssd", "IDMAP-Verbosity", idmap_verbosity);
|
|
|
b91b93 |
+
|
|
|
b91b93 |
while ((opt = getopt(argc, argv, "fivrnp:")) != -1) {
|
|
|
b91b93 |
switch (opt) {
|
|
|
b91b93 |
case 'f':
|
|
|
b91b93 |
diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c
|
|
|
b91b93 |
index 4811e0f..d14eef7 100644
|
|
|
b91b93 |
--- a/utils/idmapd/idmapd.c
|
|
|
b91b93 |
+++ b/utils/idmapd/idmapd.c
|
|
|
b91b93 |
@@ -261,6 +261,10 @@ main(int argc, char **argv)
|
|
|
b91b93 |
strlcpy(pipefsdir, xpipefsdir, sizeof(pipefsdir));
|
|
|
b91b93 |
CONF_SAVE(nobodyuser, conf_get_str("Mapping", "Nobody-User"));
|
|
|
b91b93 |
CONF_SAVE(nobodygroup, conf_get_str("Mapping", "Nobody-Group"));
|
|
|
b91b93 |
+ if (conf_get_bool("General", "server-only", false))
|
|
|
b91b93 |
+ clientstart = 0;
|
|
|
b91b93 |
+ if (conf_get_bool("General", "client-only", false))
|
|
|
b91b93 |
+ serverstart = 0;
|
|
|
b91b93 |
}
|
|
|
b91b93 |
} else {
|
|
|
b91b93 |
conf_path = NFS_CONFFILE;
|
|
|
b91b93 |
@@ -276,6 +280,10 @@ main(int argc, char **argv)
|
|
|
b91b93 |
"cache-expiration", DEFAULT_IDMAP_CACHE_EXPIRY);
|
|
|
b91b93 |
CONF_SAVE(nobodyuser, conf_get_str("Mapping", "Nobody-User"));
|
|
|
b91b93 |
CONF_SAVE(nobodygroup, conf_get_str("Mapping", "Nobody-Group"));
|
|
|
b91b93 |
+ if (conf_get_bool("General", "server-only", false))
|
|
|
b91b93 |
+ clientstart = 0;
|
|
|
b91b93 |
+ if (conf_get_bool("General", "client-only", false))
|
|
|
b91b93 |
+ serverstart = 0;
|
|
|
b91b93 |
}
|
|
|
b91b93 |
|
|
|
b91b93 |
while ((opt = getopt(argc, argv, GETOPTSTR)) != -1)
|
|
|
b91b93 |
diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
|
|
|
b91b93 |
index 6b57e2b..b256bd9 100644
|
|
|
b91b93 |
--- a/utils/nfsd/nfsd.c
|
|
|
b91b93 |
+++ b/utils/nfsd/nfsd.c
|
|
|
b91b93 |
@@ -83,6 +83,9 @@ main(int argc, char **argv)
|
|
|
b91b93 |
|
|
|
b91b93 |
conf_init_file(NFS_CONFFILE);
|
|
|
b91b93 |
xlog_from_conffile("nfsd");
|
|
|
b91b93 |
+
|
|
|
b91b93 |
+ nfssvc_get_minormask(&minormask);
|
|
|
b91b93 |
+
|
|
|
b91b93 |
count = conf_get_num("nfsd", "threads", count);
|
|
|
b91b93 |
grace = conf_get_num("nfsd", "grace-time", grace);
|
|
|
b91b93 |
lease = conf_get_num("nfsd", "lease-time", lease);
|
|
|
b91b93 |
@@ -101,13 +104,19 @@ main(int argc, char **argv)
|
|
|
b91b93 |
for (i = 2; i <= 4; i++) {
|
|
|
b91b93 |
char tag[20];
|
|
|
b91b93 |
sprintf(tag, "vers%d", i);
|
|
|
b91b93 |
- if (conf_get_bool("nfsd", tag, NFSCTL_VERISSET(versbits, i)))
|
|
|
b91b93 |
+ if (conf_get_bool("nfsd", tag, NFSCTL_VERISSET(versbits, i))) {
|
|
|
b91b93 |
NFSCTL_VERSET(versbits, i);
|
|
|
b91b93 |
- else
|
|
|
b91b93 |
+ if (i == 4)
|
|
|
b91b93 |
+ minorvers = minorversset = minormask;
|
|
|
b91b93 |
+ } else {
|
|
|
b91b93 |
NFSCTL_VERUNSET(versbits, i);
|
|
|
b91b93 |
+ if (i == 4) {
|
|
|
b91b93 |
+ minorvers = 0;
|
|
|
b91b93 |
+ minorversset = minormask;
|
|
|
b91b93 |
+ }
|
|
|
b91b93 |
+ }
|
|
|
b91b93 |
}
|
|
|
b91b93 |
|
|
|
b91b93 |
- nfssvc_get_minormask(&minormask);
|
|
|
b91b93 |
/* We assume the kernel will default all minor versions to 'on',
|
|
|
b91b93 |
* and allow the config file to disable some.
|
|
|
b91b93 |
*/
|
|
|
b91b93 |
diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c
|
|
|
b91b93 |
index 7a48473..29dad38 100644
|
|
|
b91b93 |
--- a/utils/statd/sm-notify.c
|
|
|
b91b93 |
+++ b/utils/statd/sm-notify.c
|
|
|
b91b93 |
@@ -503,6 +503,7 @@ main(int argc, char **argv)
|
|
|
b91b93 |
s = conf_get_str("statd", "state-directory-path");
|
|
|
b91b93 |
if (s && !nsm_setup_pathnames(argv[0], s))
|
|
|
b91b93 |
exit(1);
|
|
|
b91b93 |
+ opt_update_state = conf_get_bool("sm-notify", "update-state", opt_update_state);
|
|
|
b91b93 |
|
|
|
b91b93 |
while ((c = getopt(argc, argv, "dm:np:v:P:f")) != -1) {
|
|
|
b91b93 |
switch (c) {
|