Blame SOURCES/nfs-utils-2.3.3-nfsd-disable-v4.patch

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