From: Andrew Deason Date: Thu, 30 Sep 2010 17:39:22 +0000 (-0500) Subject: viced: Allow checkout of VOL_STATE_DELETED volumes X-Git-Tag: upstream/1.8.0_pre1^2~4528 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=88fc9ada4cfaee354199480916d139400ee0ef5b;p=packages%2Fo%2Fopenafs.git viced: Allow checkout of VOL_STATE_DELETED volumes The fileserver allows nonexistent volumes to be checked out. Since VOL_STATE_DELETED volumes conceptually do not exist, we should also allow them to be checked out. Change-Id: Ibc0f761569b339579acff03a3cbd9f795f783e0a Reviewed-on: http://gerrit.openafs.org/2873 Reviewed-by: Tom Keiser Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/vol/fssync-server.c b/src/vol/fssync-server.c index d5e2dca6a..ab9afc951 100644 --- a/src/vol/fssync-server.c +++ b/src/vol/fssync-server.c @@ -966,6 +966,7 @@ FSYNC_com_VolOff(FSSYNC_VolOp_command * vcom, SYNC_response * res) case VOL_STATE_PREATTACHED: case VOL_STATE_SALVAGING: case VOL_STATE_ERROR: + case VOL_STATE_DELETED: /* register the volume operation metadata with the volume * * if the volume is currently pre-attached, attach2() @@ -993,6 +994,7 @@ FSYNC_com_VolOff(FSSYNC_VolOp_command * vcom, SYNC_response * res) case VOL_STATE_PREATTACHED: case VOL_STATE_SALVAGING: case VOL_STATE_ERROR: + case VOL_STATE_DELETED: /* register the volume operation metadata with the volume * * if the volume is currently pre-attached, attach2()