diff options
author | Neil Brown <neilb@suse.de> | 2007-03-19 10:22:22 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-03-19 10:22:22 +1100 |
commit | e3f2d2262fed12f0f6b77c5ac1c4072d82f1e754 (patch) | |
tree | f9984092a2e1f31e76e62374adb78a996955ae2e /support/export | |
parent | f5954afaeeee07ca6ded6c4cdcbf965f02f7a670 (diff) | |
download | nfs-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 'support/export')
-rw-r--r-- | support/export/export.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/support/export/export.c b/support/export/export.c index a4b0788..74e1d1b 100644 --- a/support/export/export.c +++ b/support/export/export.c @@ -90,6 +90,7 @@ export_init(nfs_export *exp, nfs_client *clp, struct exportent *nep) exp->m_xtabent = 0; exp->m_mayexport = 0; exp->m_changed = 0; + exp->m_warned = 0; exp->m_client = clp; clp->m_count++; } @@ -115,6 +116,7 @@ export_dup(nfs_export *exp, struct hostent *hp) new->m_exported = 0; new->m_xtabent = 0; new->m_changed = 0; + new->m_warned = 0; export_add(new); return new; |