Linux NFS development
 help / color / mirror / Atom feed
* [nfs-utils PATCH] Set right error after getaddrinfo fails bz 1287468
@ 2015-12-23 16:22 Rinku Kothiya
  0 siblings, 0 replies; 5+ messages in thread
From: Rinku Kothiya @ 2015-12-23 16:22 UTC (permalink / raw)
  To: Steve Dickson, linux-nfs; +Cc: Mohit Agrawal

From: Rinku Kothiya <rkothiya@redhat.com>

Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
---

diff -up nfs-utils-1.3.0/support/nfs/hostname.c.orig 
nfs-utils-1.3.0/support/nfs/hostname.c
--- nfs-utils-1.3.0/support/export/hostname.c.orig      2015-12-08 
15:24:36.705047453 +0530
+++ nfs-utils-1.3.0/support/export/hostname.c   2015-12-08 
15:25:46.614047453 +0530
@@ -179,11 +179,11 @@
         case 0:
                 return ai;
         case EAI_SYSTEM:
-               xlog(D_GENERAL, "%s: failed to resolve %s: (%d) %m",
+               xlog(L_WARNING, "%s: failed to resolve %s: (%d) %m",
                                 __func__, hostname, errno);
                 break;
         default:
-               xlog(D_GENERAL, "%s: failed to resolve %s: %s",
+               xlog(L_WARNING, "%s: failed to resolve %s: %s",
                                 __func__, hostname, gai_strerror(error));
                 break;
         }
diff -up nfs-utils-1.3.0/support/nfs/client.c.orig 
nfs-utils-1.3.0/support/nfs/client.c
--- nfs-utils-1.3.0/support/export/client.c.orig        2015-12-08 
17:08:45.469047453 +0530
+++ nfs-utils-1.3.0/support/export/client.c     2015-12-08 
17:09:01.159047453 +0530
@@ -277,7 +277,7 @@
         if (htype == MCL_FQDN && !canonical) {
                 ai = host_addrinfo(hname);
                 if (!ai) {
-                       xlog(L_ERROR, "Failed to resolve %s", hname);
+                       xlog(L_WARNING, "Failed to resolve %s", hname);
                         goto out;
                 }
                 hname = ai->ai_canonname;

-- 
Thanks and Regards
Rinku Kothiya


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-16 21:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1449635027-10764-1-git-send-email-rkothiya@redhat.com>
2015-12-09  4:29 ` [nfs-utils PATCH] Set right error after getaddrinfo fails bz 1287468 Rinku Kothiya
2015-12-21  4:41   ` Rinku Kothiya
2015-12-22  9:09     ` [nfs-utils PATCH] Set right error after getaddrinfo fails bz 1287468, Please find the same patch attached to this email as well Rinku Kothiya
2016-01-16 21:59   ` [nfs-utils PATCH] Set right error after getaddrinfo fails bz 1287468 Steve Dickson
2015-12-23 16:22 Rinku Kothiya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox