Blame SOURCES/nfs-utils-1.3.0-smnotify-f-flag.patch

3a6d19
diff --git a/nfs.conf b/nfs.conf
3a6d19
index 118f638..ea8204b 100644
3a6d19
--- a/nfs.conf
3a6d19
+++ b/nfs.conf
3a6d19
@@ -9,6 +9,8 @@
3a6d19
 # debug=0
3a6d19
 #
3a6d19
 #[gssd]
3a6d19
+# verbosity=0
3a6d19
+# rpc-verbosity=0
3a6d19
 # use-memcache=0
3a6d19
 # use-machine-creds=1
3a6d19
 # avoid-dns=1
3a6d19
@@ -64,6 +66,7 @@
3a6d19
 #
3a6d19
 #[sm-notify]
3a6d19
 # debug=0
3a6d19
+# force=0
3a6d19
 # retry-time=900
3a6d19
 # outgoing-port=
3a6d19
 # outgoing-addr=
3a6d19
diff --git a/systemd/nfs.conf.man b/systemd/nfs.conf.man
3a6d19
index 9700586..0953b80 100644
3a6d19
--- a/systemd/nfs.conf.man
3a6d19
+++ b/systemd/nfs.conf.man
3a6d19
@@ -204,6 +204,8 @@ for details.
3a6d19
 .TP
3a6d19
 .B gssd
3a6d19
 Recognized values:
3a6d19
+.BR verbosity ,
3a6d19
+.BR rpc-verbosity ,
3a6d19
 .BR use-memcache ,
3a6d19
 .BR use-machine-creds ,
3a6d19
 .BR avoid-dns ,
3a6d19
diff --git a/utils/gssd/gssd.c b/utils/gssd/gssd.c
3a6d19
index 10d50d3..05defb4 100644
3a6d19
--- a/utils/gssd/gssd.c
3a6d19
+++ b/utils/gssd/gssd.c
3a6d19
@@ -889,6 +889,9 @@ main(int argc, char *argv[])
3a6d19
 
3a6d19
 	read_gss_conf();
3a6d19
 
3a6d19
+	verbosity = conf_get_num("gssd", "verbosity", verbosity);
3a6d19
+	rpc_verbosity = conf_get_num("gssd", "rpc-verbosity", rpc_verbosity);
3a6d19
+
3a6d19
 	while ((opt = getopt(argc, argv, "DfvrlmnMp:k:d:t:T:R:")) != -1) {
3a6d19
 		switch (opt) {
3a6d19
 			case 'f':
3a6d19
diff --git a/utils/gssd/svcgssd.c b/utils/gssd/svcgssd.c
3a6d19
index 1fb579a..9d3ca40 100644
3a6d19
--- a/utils/gssd/svcgssd.c
3a6d19
+++ b/utils/gssd/svcgssd.c
3a6d19
@@ -113,6 +113,10 @@ main(int argc, char *argv[])
3a6d19
 	else
3a6d19
 		principal = s;
3a6d19
 
3a6d19
+	verbosity = conf_get_num("svcgssd", "Verbosity", verbosity);
3a6d19
+	rpc_verbosity = conf_get_num("svcgssd", "RPC-Verbosity", rpc_verbosity);
3a6d19
+	idmap_verbosity = conf_get_num("svcgssd", "IDMAP-Verbosity", idmap_verbosity);
3a6d19
+
3a6d19
 	while ((opt = getopt(argc, argv, "fivrnp:")) != -1) {
3a6d19
 		switch (opt) {
3a6d19
 			case 'f':
3a6d19
diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c
3a6d19
index 03efbea..9317fd7 100644
3a6d19
--- a/utils/idmapd/idmapd.c
3a6d19
+++ b/utils/idmapd/idmapd.c
3a6d19
@@ -263,6 +263,10 @@ main(int argc, char **argv)
3a6d19
 				strlcpy(pipefsdir, xpipefsdir, sizeof(pipefsdir));
3a6d19
 			CONF_SAVE(nobodyuser, conf_get_str("Mapping", "Nobody-User"));
3a6d19
 			CONF_SAVE(nobodygroup, conf_get_str("Mapping", "Nobody-Group"));
3a6d19
+			if (conf_get_bool("General", "server-only", false))
3a6d19
+				clientstart = 0;
3a6d19
+			if (conf_get_bool("General", "client-only", false))
3a6d19
+				serverstart = 0;
3a6d19
 		}
3a6d19
 	} else {
3a6d19
 		conf_path = NFS_CONFFILE;
3a6d19
@@ -278,6 +282,10 @@ main(int argc, char **argv)
3a6d19
 				"cache-expiration", DEFAULT_IDMAP_CACHE_EXPIRY);
3a6d19
 		CONF_SAVE(nobodyuser, conf_get_str("Mapping", "Nobody-User"));
3a6d19
 		CONF_SAVE(nobodygroup, conf_get_str("Mapping", "Nobody-Group"));
3a6d19
+		if (conf_get_bool("General", "server-only", false))
3a6d19
+			clientstart = 0;
3a6d19
+		if (conf_get_bool("General", "client-only", false))
3a6d19
+			serverstart = 0;
3a6d19
 	}
3a6d19
 
3a6d19
 	while ((opt = getopt(argc, argv, GETOPTSTR)) != -1)
3a6d19
diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c
3a6d19
index cc4d425..248b950 100644
3a6d19
--- a/utils/statd/sm-notify.c
3a6d19
+++ b/utils/statd/sm-notify.c
3a6d19
@@ -46,6 +46,7 @@
3a6d19
 #define NLM_END_GRACE_FILE	"/proc/fs/lockd/nlm_end_grace"
3a6d19
 
3a6d19
 int lift_grace = 1;
3a6d19
+int force = 0;
3a6d19
 
3a6d19
 struct nsm_host {
3a6d19
 	struct nsm_host *	next;
3a6d19
@@ -477,13 +478,30 @@ nsm_lift_grace_period(void)
3a6d19
 	close(fd);
3a6d19
 	return;
3a6d19
 }
3a6d19
+inline static void 
3a6d19
+read_nfsconf(char **argv)
3a6d19
+{
3a6d19
+	char *s;
3a6d19
+
3a6d19
+	conf_init();
3a6d19
+	xlog_from_conffile("sm-notify");
3a6d19
+	opt_max_retry = conf_get_num("sm-notify", "retry-time", opt_max_retry / 60) * 60;
3a6d19
+	opt_srcport = conf_get_str("sm-notify", "outgoing-port");
3a6d19
+	opt_srcaddr = conf_get_str("sm-notify", "outgoing-addr");
3a6d19
+	lift_grace = conf_get_bool("sm-notify", "lift-grace", lift_grace);
3a6d19
+
3a6d19
+	s = conf_get_str("statd", "state-directory-path");
3a6d19
+	if (s && !nsm_setup_pathnames(argv[0], s))
3a6d19
+		exit(1);
3a6d19
+	opt_update_state = conf_get_bool("sm-notify", "update-state", opt_update_state);
3a6d19
+	force = conf_get_bool("sm-notify", "force", force);
3a6d19
+}
3a6d19
 
3a6d19
 int
3a6d19
 main(int argc, char **argv)
3a6d19
 {
3a6d19
-	int	c, sock, force = 0;
3a6d19
+	int	c, sock;
3a6d19
 	char *	progname;
3a6d19
-	char *	s;
3a6d19
 
3a6d19
 	progname = strrchr(argv[0], '/');
3a6d19
 	if (progname != NULL)
3a6d19
@@ -491,15 +509,7 @@ main(int argc, char **argv)
3a6d19
 	else
3a6d19
 		progname = argv[0];
3a6d19
 
3a6d19
-	conf_init();
3a6d19
-	xlog_from_conffile("sm-notify");
3a6d19
-	opt_max_retry = conf_get_num("sm-notify", "retry-time", opt_max_retry / 60) * 60;
3a6d19
-	opt_srcport = conf_get_str("sm-notify", "outgoing-port");
3a6d19
-	opt_srcaddr = conf_get_str("sm-notify", "outgoing-addr");
3a6d19
-	lift_grace = conf_get_bool("sm-notify", "lift-grace", lift_grace);
3a6d19
-	s = conf_get_str("statd", "state-directory-path");
3a6d19
-	if (s && !nsm_setup_pathnames(argv[0], s))
3a6d19
-		exit(1);
3a6d19
+	read_nfsconf(argv);
3a6d19
 
3a6d19
 	while ((c = getopt(argc, argv, "dm:np:v:P:f")) != -1) {
3a6d19
 		switch (c) {