]> git.michaelhowe.org Git - packages/o/openafs.git/commit
vol: A GOING_OFFLINE volume should yield VOFFLINE
authorAndrew Deason <adeason@sinenomine.net>
Fri, 27 Apr 2012 17:59:25 +0000 (12:59 -0500)
committerDerrick Brashear <shadow@dementix.org>
Mon, 28 May 2012 14:41:49 +0000 (07:41 -0700)
commitfe588efd2df9adb6d393f223a4359cdc46a16185
tree9071d550886e50a8044b53ec4a2ba4ab42dc7535
parentbb6347a7a5b6ce04438a1d8ede56073a66982690
vol: A GOING_OFFLINE volume should yield VOFFLINE

Currently, GetVolume treats a volume in the VOL_STATE_GOING_OFFLINE
state the same as VOL_STATE_SHUTTING_DOWN, and so returns VNOVOL for a
GOING_OFFLINE volume, but these states are very different.

GOING_OFFLINE indicates that a volume should soon be in the UNATTACHED
state, so we should treat GOING_OFFLINE the same as UNATTACHED for
returning errors to the user. For UNATTACHED, we return specialStatus
if it's set, or VOFFLINE otherwise; so, just do the same for
GOING_OFFLINE.

Reviewed-on: http://gerrit.openafs.org/7290
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit d10f71d44fddd7ea6e37481cffd7ee1be2a93217)

Change-Id: I1f75992da7732596c78041e9eac3b1e3a12082e8
Reviewed-on: http://gerrit.openafs.org/7488
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/vol/volume.c