[OpenAFS-devel] RFC: Status returned by vos for pre-attached volumes on demand-attach

Simon Wilkinson sxw@inf.ed.ac.uk
Wed, 22 Jul 2009 13:14:49 +0100


On 22 Jul 2009, at 13:07, Russ Allbery wrote:

> Alistair Ferguson <Alistair.Ferguson@morganstanley.com> writes:
>
>> There are at least four options:
>> 1. expose all underlying states to vos examine
>> 2. expose pre-attached to vos examine
>> 3. convert pre-attached to on-line for vos (the current behavior)
>> 4. convert pre-attached to off-line for vos
>>
>> Option 3 is currently implemented and is the least desirable.
>>
>> Our suggestion is that we implement option 1, which will require
>> exposing the current volume state onto the inUse field in the
>> FillVolInfo function in the volserver.  The vos command would need  
>> to be
>> modified to be aware of the new values, but unmodified vos commands
>> would report off-line for volumes in a state other than fully  
>> attached.
>
> I agree with this proposal.  I think we should expose the full state.
> We'll have to modify some of our vos examine parsing code, but I think
> that's the direction to go anyway.

As this involves a change to the meaning of a protocol field, it  
should probably be discussed over on afs3-standardization. I don't see  
any problem with extending the meaning of the inUse field, but it does  
have some potential for colliding with local hacks. In this case, I  
think I'd support extending the meaning without requiring new RPCs.

S.