Skip to contentSkip to conversation

Quick question about parsing

DISCUSSION Peter C. Norton 3 participants 3 messages Apr 28, 2005 – Apr 29, 2005 Kernel automounter

lore
Share & tools
lore
#0 lore raw

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.
#1 lore raw

==> 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

maintainer
#2 lore raw
In reply to Peter C. Norton
Quoted 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