[OpenAFS-devel] Re: Proposed new kafs interface: k_getpag

Russ Allbery rra@stanford.edu
Thu, 16 Jul 2009 08:27:17 -0700


Love H=F6rnquist =C5strand <lha@kth.se> writes:

> I don't see any problems, however, I want to ask a question.
>
> That do you plan to do with the value you get back ? From your problem
> description this api would also solve your problem description.
>
> int     k_haspag(void); /* k_isinpag()  ? */

That's a good point, and I was pondering whether that would be a better
approach.  The only advantage to returning the actual PAG number that I
can think of is that it allows one to remember it and later determine
whether one is still in the same PAG, but off the top of my head I can't
think of a case when I'd want to do that.

k_haspag() would be fine with me as well, and would simplify the interface
(no need for a uint32_t type or the K_NOPAG define).

--=20
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>