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

Russ Allbery rra@stanford.edu
Wed, 22 Jul 2009 05:07:55 -0700


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.

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