Quick question about parsing
Does anyone know if there's a documented behaviour if the same key appears more than once in a map? First, last, all?
I'm trying to fix an issue in the NIS+ module, and I want to make sure I'm doing what the documentation says I should.
Thanks,
-Peter
Signature · 3 lines
The 5 year plan: In five years we'll make up another plan. Or just re-use this one.
==> Regarding [autofs] Quick question about parsing; "Peter C. Norton" <[email protected]> adds:
spacey-autofs> Does anyone know if there's a documented behaviour if the spacey-autofs> same key appears more than once in a map? First, last, all?
spacey-autofs> I'm trying to fix an issue in the NIS+ module, and I want to spacey-autofs> make sure I'm doing what the documentation says I should.
Well, I don't believe NIS guarantees the order in which results are returned. I'm not sure about NIS+.
The internal behaviour of the Linux automounter is that all of the entries are cached, but the first to be found is the one that is used. Note that this is all hidden under the covers from the various lookup modules. So, you shouldn't have to do anything specific in the nis+ module.
-Jeff
Ian Kent
maintainerQuoted 2 lines · Peter C. Norton
Does anyone know if there's a documented behaviour if the same key appears more than once in a map? First, last, all?
This has been discussed a bit lately.
My current understanding is that the first encountered entry should take precedence.
Quoted 18 lines
I'm trying to fix an issue in the NIS+ module, and I want to make sure I'm doing what the documentation says I should.
Thanks,
-Peter
Signature · 8 lines
The 5 year plan: In five years we'll make up another plan. Or just re-use this one. _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs