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