summaryrefslogtreecommitdiffstats
path: root/utils/mountd/cache.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-03-19 10:22:22 +1100
committerNeil Brown <neilb@suse.de>2007-03-19 10:22:22 +1100
commite3f2d2262fed12f0f6b77c5ac1c4072d82f1e754 (patch)
treef9984092a2e1f31e76e62374adb78a996955ae2e /utils/mountd/cache.c
parentf5954afaeeee07ca6ded6c4cdcbf965f02f7a670 (diff)
downloadnfs-utils-e3f2d2262fed12f0f6b77c5ac1c4072d82f1e754.tar.gz
nfs-utils-e3f2d2262fed12f0f6b77c5ac1c4072d82f1e754.tar.xz
nfs-utils-e3f2d2262fed12f0f6b77c5ac1c4072d82f1e754.zip
Make warning about host matching multiple exports more helpful.
1/ only warn once per export, as it could get too noisy. 2/ make it a little clearer why this might be a problem.
Diffstat (limited to 'utils/mountd/cache.c')
-rw-r--r--utils/mountd/cache.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index ed7fe35..5612a9e 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -520,10 +520,12 @@ void nfsd_export(FILE *f)
if (!found) {
found = exp;
found_type = i;
- } else if (found_type == i) {
- xlog(L_WARNING, "%s exported to both %s and %s in %s",
- path, exp->m_client->m_hostname, found->m_client->m_hostname,
+ } else if (found_type == i && found->m_warned == 0) {
+ xlog(L_WARNING, "%s exported to both %s and %s, "
+ "arbitrarily choosing options from first",
+ path, found->m_client->m_hostname, exp->m_client->m_hostname,
dom);
+ found->m_warned = 1;
}
}
}