Blame SOURCES/nfs-utils-1.3.0-exportfs-hostnames.patch

e19a30
diff --git a/support/export/hostname.c b/support/export/hostname.c
e19a30
index cdf9e76..816b098 100644
e19a30
--- a/support/export/hostname.c
e19a30
+++ b/support/export/hostname.c
e19a30
@@ -230,7 +230,7 @@ host_canonname(const struct sockaddr *sap)
e19a30
 	default:
e19a30
 		(void)getnameinfo(sap, salen, buf, (socklen_t)sizeof(buf),
e19a30
 							NULL, 0, NI_NUMERICHOST);
e19a30
-		xlog(D_GENERAL, "%s: failed to resolve %s: %s",
e19a30
+		xlog(D_PARSE, "%s: failed to resolve %s: %s",
e19a30
 				__func__, buf, gai_strerror(error));
e19a30
 		return NULL;
e19a30
 	}
e19a30
diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
e19a30
index 614c3dc..bc3f00f 100644
e19a30
--- a/utils/exportfs/exportfs.c
e19a30
+++ b/utils/exportfs/exportfs.c
e19a30
@@ -108,11 +108,14 @@ main(int argc, char **argv)
e19a30
 	xlog_stderr(1);
e19a30
 	xlog_syslog(0);
e19a30
 
e19a30
-	while ((c = getopt(argc, argv, "afhio:ruvs")) != EOF) {
e19a30
+	while ((c = getopt(argc, argv, "ad:fhio:ruvs")) != EOF) {
e19a30
 		switch(c) {
e19a30
 		case 'a':
e19a30
 			f_all = 1;
e19a30
 			break;
e19a30
+		case 'd':
e19a30
+			xlog_sconfig(optarg, 1);
e19a30
+			break;
e19a30
 		case 'f':
e19a30
 			force_flush = 1;
e19a30
 			break;
e19a30
@@ -869,6 +872,6 @@ error(nfs_export *exp, int err)
e19a30
 static void
e19a30
 usage(const char *progname, int n)
e19a30
 {
e19a30
-	fprintf(stderr, "usage: %s [-afhioruvs] [host:/path]\n", progname);
e19a30
+	fprintf(stderr, "usage: %s [-adfhioruvs] [host:/path]\n", progname);
e19a30
 	exit(n);
e19a30
 }
e19a30
diff --git a/utils/exportfs/exportfs.man b/utils/exportfs/exportfs.man
e19a30
index 75d952a..fdf9260 100644
e19a30
--- a/utils/exportfs/exportfs.man
e19a30
+++ b/utils/exportfs/exportfs.man
e19a30
@@ -88,6 +88,9 @@ appropriate export entry for the host given in
e19a30
 to be added to the kernel's export table.
e19a30
 .SH OPTIONS
e19a30
 .TP
e19a30
+.B \-d kind " or " \-\-debug kind
e19a30
+Turn on debugging. Valid kinds are: all, auth, call, general and parse.
e19a30
+.TP
e19a30
 .B -a
e19a30
 Export or unexport all directories.
e19a30
 .TP