From: Steve Dickson <steved@redhat.com>
To: Scott Mayhew <smayhew@redhat.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [nfs-utils PATCH] Pass ignore_hosts to export_create() in export_read()
Date: Wed, 15 Jul 2026 06:56:07 -0400 [thread overview]
Message-ID: <6498f379-c2ed-4c1c-b925-056d6462bca7@redhat.com> (raw)
In-Reply-To: <20260713202809.786079-1-smayhew@redhat.com>
On 7/13/26 4:28 PM, Scott Mayhew wrote:
> Commit 8f3d12ce ("nfs-server-generator: avoid using external services.")
> added the 'ignore_hosts' flag to export_read() so nfs-server-generator
> can bypass DNS queries when calling it. If the export doesn't
> already exist, export_read() calls export_create() with the 'canonical'
> argument hard-coded to 0, triggering a DNS query in client_lookup().
> An unresponsive DNS server can cause delays in nfs-server-generator and
> can even lead to 'systemctl daemon-reload' timing out, leading to
> further administrative issues.
>
> nfs-server-generator only cares about *what* is exported, so it can
> create the order-with-mounts.conf config drop-in. It doesn't need to
> know *who* those filesystems are exported to, so it has no need to
> perform DNS queries.
>
> Pass the 'ignore_hosts' flag from export_read() to export_create() to
> avoid the unnecessary DNS queries.
>
> Fixes: 8f3d12ce ("nfs-server-generator: avoid using external services.")
> Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Committed...
steved.
> ---
> support/export/export.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/support/export/export.c b/support/export/export.c
> index 2c8c3335..3caee043 100644
> --- a/support/export/export.c
> +++ b/support/export/export.c
> @@ -122,7 +122,7 @@ export_read(char *fname, int ignore_hosts)
> while ((eep = getexportent(0)) != NULL) {
> exp = export_lookup(eep->e_hostname, eep->e_path, ignore_hosts);
> if (!exp) {
> - if (export_create(eep, 0))
> + if (export_create(eep, ignore_hosts))
> /* possible complaints already logged */
> volumes++;
> }
prev parent reply other threads:[~2026-07-15 10:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-13 20:28 [nfs-utils PATCH] Pass ignore_hosts to export_create() in export_read() Scott Mayhew
2026-07-15 10:56 ` Steve Dickson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6498f379-c2ed-4c1c-b925-056d6462bca7@redhat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=smayhew@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox