Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 934872 Details for
Bug 1115179
nfs-server fails if hosts in exports can't be resolved
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
exportfs patch
nfs-utils-1.3.0-exportfs.patch (text/plain), 1.68 KB, created by
Henrique Martins
on 2014-09-05 17:09:48 UTC
(
hide
)
Description:
exportfs patch
Filename:
MIME Type:
Creator:
Henrique Martins
Created:
2014-09-05 17:09:48 UTC
Size:
1.68 KB
patch
obsolete
>--- nfs-utils-1.3.0/support/export/client.c.orig 2014-09-05 08:21:37.568364360 -0700 >+++ nfs-utils-1.3.0/support/export/client.c 2014-09-05 08:21:41.709451778 -0700 >@@ -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; >--- nfs-utils-1.3.0/support/export/hostname.c.orig 2014-09-05 08:09:07.387551291 -0700 >+++ nfs-utils-1.3.0/support/export/hostname.c 2014-09-05 08:09:13.799573723 -0700 >@@ -175,11 +175,11 @@ > case 0: > return ai; > case EAI_SYSTEM: >- xlog(D_GENERAL, "%s: failed to resolve %s: (%d) %m", >+ xlog(D_PARSE, "%s: failed to resolve %s: (%d) %m", > __func__, hostname, errno); > break; > default: >- xlog(D_GENERAL, "%s: failed to resolve %s: %s", >+ xlog(D_PARSE, "%s: failed to resolve %s: %s", > __func__, hostname, gai_strerror(error)); > break; > } >--- nfs-utils-1.3.0/support/export/export.c.orig 2014-03-25 08:12:07.000000000 -0700 >+++ nfs-utils-1.3.0/support/export/export.c 2014-09-05 09:23:37.424105125 -0700 >@@ -76,15 +76,22 @@ > struct exportent *eep; > nfs_export *exp; > >+ int volumes = 0; >+ > setexportent(fname, "r"); > while ((eep = getexportent(0,1)) != NULL) { > exp = export_lookup(eep->e_hostname, eep->e_path, 0); >- if (!exp) >- export_create(eep, 0); >+ if (!exp) { >+ exp = export_create(eep, 0); >+ if (exp) >+ volumes++; >+ } > else > warn_duplicated_exports(exp, eep); > } > endexportent(); >+ if (volumes == 0) >+ xlog(L_ERROR, "no or all unresolvable export entries"); > } > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1115179
:
923627
|
923629
|
923630
| 934872 |
957688